- Timestamp:
- Jul 20, 2009, 8:47:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mainwindow.cpp
r37 r38 30 30 loadLanguage(); 31 31 setupUi(this); 32 #ifdef Q_OS_WINCE 33 // A little hack for toolbar icons to have sane size. 34 int s = qMin(QApplication::desktop()->screenGeometry().width(),QApplication::desktop()->screenGeometry().height()); 35 toolBar->setIconSize(QSize(s / 10,s / 10)); 36 #endif 32 37 #ifndef Q_OS_WINCE 33 38 printer = new QPrinter(); … … 56 61 #ifdef Q_OS_WINCE 57 62 // HACK: Fix for all tabWidget elements becoming "unclickable" if making it central widget. 58 rect.setSize(QApplication::desktop()->availableGeometry().size());63 /* rect.setSize(QApplication::desktop()->availableGeometry().size()); 59 64 rect.setHeight(rect.height() - (QApplication::desktop()->screenGeometry().height() - QApplication::desktop()->availableGeometry().height())); 60 tabWidget->resize(rect.width(),rect.height() - toolBar->size().height()); 65 tabWidget->resize(rect.width(),rect.height() - toolBar->iconSize().height());*/ 66 // Somehow, this works now. No more "unclickable" elements :-\ 67 setCentralWidget(tabWidget); 61 68 #else 62 69 if (settings->value("SavePos",false).toBool()) {
Note: See TracChangeset
for help on using the changeset viewer.