- Timestamp:
- May 30, 2011, 3:11:22 PM (14 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mainwindow.cpp
r168 r174 439 439 { 440 440 SettingsDialog sd(this); 441 #ifdef Q_WS_S60 442 sd.setWindowState(Qt::WindowMaximized); 443 #endif 441 444 if (sd.exec() != QDialog::Accepted) 442 445 return; … … 693 696 #ifndef HANDHELD 694 697 dlg->resize(450, 350); 698 #elif defined(Q_WS_S60) 699 dlg->setWindowState(Qt::WindowMaximized); 695 700 #endif 696 701 QApplication::restoreOverrideCursor(); … … 1537 1542 } 1538 1543 1544 #ifdef Q_WS_S60 1545 void MainWindow::resizeEvent(QResizeEvent *ev) 1546 { 1547 static bool tb = toolBarMain->isVisible(); 1548 if ((ev->size().width() < ev->size().height()) 1549 && (ev->oldSize().width() > ev->oldSize().height())) { 1550 // From landscape to portrait 1551 if (tb) 1552 toolBarMain->show(); 1553 setWindowState(Qt::WindowMaximized); 1554 } else if ((ev->size().width() > ev->size().height()) 1555 && (ev->oldSize().width() < ev->oldSize().height())) { 1556 // From portrait to landscape 1557 if (tb = toolBarMain->isVisible()) 1558 toolBarMain->hide(); 1559 setWindowState(Qt::WindowFullScreen); 1560 } 1561 1562 QWidget::resizeEvent(ev); 1563 } 1564 #endif // Q_WS_S60 1565 1539 1566 void MainWindow::retranslateUi(bool all) 1540 1567 { … … 1642 1669 { 1643 1670 Ui_MainWindow::setupUi(this); 1671 1672 #ifdef Q_WS_S60 1673 setWindowFlags(windowFlags() | Qt::WindowSoftkeysVisibleHint); 1674 #endif // Q_WS_S60 1644 1675 1645 1676 // File Menu -
trunk/src/mainwindow.h
r163 r174 153 153 void outputMatrix(QTextCursor &cur, const TMatrix &matrix); 154 154 void outputMatrix(QTextCursor &cur, const SStep &step); 155 #ifdef Q_WS_S60 156 void resizeEvent(QResizeEvent *ev); 157 #endif // Q_WS_S60 155 158 void retranslateUi(bool all = true); 156 159 bool saveTask();
Note: See TracChangeset
for help on using the changeset viewer.