Changeset 134a9158bd in tspsg for src


Ignore:
Timestamp:
Jul 20, 2009, 8:47:40 PM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
b24a5a054a
Parents:
690f6939a7
Message:
  • Now we use Oxygen Icons under LGPL license:
    • icons are of higher quality;
    • icons are nicer;
    • icons are LGPL :-)
  • "Toolbar too smal to be usable" problem on hi-res (VGA, WVGA, ...) wince devices fixed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.cpp

    r690f6939a7 r134a9158bd  
    3030        loadLanguage();
    3131        setupUi(this);
     32#ifdef Q_OS_WINCE
     33        // A little hack for toolbar icons to have sane size.
     34int s = qMin(QApplication::desktop()->screenGeometry().width(),QApplication::desktop()->screenGeometry().height());
     35        toolBar->setIconSize(QSize(s / 10,s / 10));
     36#endif
    3237#ifndef Q_OS_WINCE
    3338        printer = new QPrinter();
     
    5661#ifdef Q_OS_WINCE
    5762        // 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());
    5964        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);
    6168#else
    6269        if (settings->value("SavePos",false).toBool()) {
Note: See TracChangeset for help on using the changeset viewer.