mainwindowandroid.cpp 759 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #include "mainwindowandroid.h"
  2. #include "ui_mainwindowandroid.h"
  3. #include "logtimewindow.h"
  4. #include "showtimewindow.h"
  5. MainWindowAndroid::MainWindowAndroid ( QWidget *parent ) :
  6. QFrame ( parent ),
  7. ui ( new Ui::MainWindowAndroid )
  8. {
  9. this->ui->setupUi ( this );
  10. this->setWindowTitle ( "Система «Задачи» НИЯУ МИФИ" );
  11. #ifdef __WINRT__
  12. delete this->ui->quitButton;
  13. #endif
  14. }
  15. MainWindowAndroid::~MainWindowAndroid()
  16. {
  17. delete ui;
  18. }
  19. void MainWindowAndroid::on_quitButton_clicked()
  20. {
  21. qApp->quit();
  22. }
  23. void MainWindowAndroid::on_logTimeWindowButton_clicked()
  24. {
  25. LogTimeWindow *w = new LogTimeWindow();
  26. w->show();
  27. }
  28. void MainWindowAndroid::on_showTimeWindowButton_clicked()
  29. {
  30. ShowTimeWindow *w = new ShowTimeWindow();
  31. w->show();
  32. }