Changeset 134a9158bd in tspsg for src
- Timestamp:
- Jul 20, 2009, 8:47:40 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- b24a5a054a
- Parents:
- 690f6939a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mainwindow.cpp
r690f6939a7 r134a9158bd 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.