Changeset 5d22816


Ignore:
Timestamp:
02/01/10 13:11:34 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
8c4d4f7
Parents:
8896336
Message:

GUI changes for N810 device

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/global.pri

    r8896336 r5d22816  
    77# To handle 'MAEMO' specific soruces/code
    88DISTRO = $$system(cat /etc/issue)
    9 contains( DISTRO, [Mm]aemo) {
     9contains( DISTRO, [Mm]aemo ) {
    1010    # for 'MAEMO' specific source code parts
    1111    DEFINES += MAEMO
     
    1414}
    1515
     16contains( DISTRO, [Ii]nternet ) {
     17    contains( DISTRO, [Tt]ablet ) {
     18        # Nokia N810 device
     19        DEFINES += N810
     20    }
     21}
     22
  • src/gui/mainwindow.cpp

    r8896336 r5d22816  
    3131{
    3232    setupUi(this);
     33
     34#ifdef N810
     35    tabWidget->setTabText(1,"Favs");
     36    //tabWidget->setTabText(2,"Day");
     37#endif
    3338
    3439    // first time run aplication: -> let's have it direct connection in this case
     
    141146    Ui::AboutDialog ui;
    142147    ui.setupUi(&dialog);
     148#ifdef N810
     149    dialog.setFixedWidth(width());
     150#endif
    143151    dialog.exec();
    144152}
  • src/gui/tabcontainer.cpp

    r8896336 r5d22816  
    5050
    5151    EventDialog dialog(static_cast<Event*>(aIndex.internalPointer())->id(),this);
     52#ifdef N810
     53    dialog.setFixedWidth(static_cast<QWidget*>(parent())->width());
     54#endif
    5255    connect(&dialog, SIGNAL(eventHasChanged(int,bool)), this, SIGNAL(eventHasChanged(int,bool)));
    5356    dialog.exec();
     
    7982{
    8083    ConflictsDialog dialog(static_cast<Event*>(aIndex.internalPointer())->id(),this);
     84#ifdef N810
     85    dialog.setFixedWidth(static_cast<QWidget*>(parent())->width());
     86#endif
    8187    connect(&dialog, SIGNAL(eventHasChanged(int,bool)), this, SIGNAL(eventHasChanged(int,bool)));
    8288    dialog.exec();
  • src/orm/ormrecord.h

    r8896336 r5d22816  
    177177{
    178178    QSqlRecord record;
    179     foreach (const QSqlField & col, columnList)
    180     {
    181         record.append(col);
     179    for(int i=0; i< columnList.count(); i++)
     180    {
     181        record.append(columnList[i]);
    182182    }
    183183    return record;
Note: See TracChangeset for help on using the changeset viewer.