Changeset 194:0766398c08a9 in qutecom-coip for gui/src/mainwindow/mainwindow.cpp


Ignore:
Timestamp:
Mar 28, 2010 12:02:27 PM (3 years ago)
Author:
laurent@…
Branch:
default
Message:

fix profilebar on windows and linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/src/mainwindow/mainwindow.cpp

    r177 r194  
    1818{ 
    1919    ui->setupUi(this); 
    20  
    21         setUnifiedTitleAndToolBarOnMac(true); 
    22         _toolBar = new QToolBar; 
    23         _toolBar->addWidget(ProfileBar::self()); 
    24         addToolBar(_toolBar); 
    25          
    2620        QWidget * widget = new QWidget; 
    2721         
     
    3024        lay->setSpacing(0); 
    3125        widget->setLayout(lay); 
     26#if defined(OS_MACOSX) 
     27        setUnifiedTitleAndToolBarOnMac(true); 
     28        _toolBar = new QToolBar; 
     29        _toolBar->addWidget(ProfileBar::self()); 
     30        addToolBar(_toolBar); 
     31#else 
     32        QHBoxLayout * hLayout = new QHBoxLayout; 
     33        hLayout->addWidget(ProfileBar::self()); 
     34        hLayout->addStretch(); 
     35        lay->addLayout(hLayout); 
     36#endif 
     37 
    3238        lay->addWidget(Contacts::self()); 
    3339        lay->addWidget(CallBar::self()); 
Note: See TracChangeset for help on using the changeset viewer.