Changeset 38 in tspsg-svn for trunk/src


Ignore:
Timestamp:
Jul 20, 2009, 8:47:40 PM (15 years ago)
Author:
laleppa
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
  • trunk/src/mainwindow.cpp

    r37 r38  
    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.