Changeset 498:d94b9528d75b in qutecom-2.2


Ignore:
Timestamp:
Feb 21, 2010 3:16:24 PM (3 years ago)
Author:
laurent@…
Branch:
default
Message:

Unify title and toolbar on mac

Location:
wengophone/src/presentation/qt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wengophone/src/presentation/qt/QtWengoPhone.cpp

    r491 r498  
    202202 
    203203        installQtBrowserWidget(); 
    204  
     204         
     205#if defined(OS_MACOSX) 
     206        _wengoPhoneWindow->setUnifiedTitleAndToolBarOnMac(true); 
     207#endif 
     208         
    205209        Config & config = ConfigManager::getInstance().getCurrentConfig(); 
    206210        mainWindowGeometry(config); 
  • wengophone/src/presentation/qt/chat/QtChatLogViewer.cpp

    r314 r498  
    151151        //// 
    152152         
     153#if defined(OS_MACOSX) 
     154        setUnifiedTitleAndToolBarOnMac(true); 
     155#endif 
     156         
    153157        SAFE_CONNECT(qtWengoPhone.getQtContactList(), SIGNAL(contactChangedEventSignal(QString )), SLOT(contactChangedEventSlot(QString))); 
    154158         
     
    197201        copyQAction(toolBar, _ui->actionCreateConferenceCall); 
    198202        SAFE_CONNECT_RECEIVER(_ui->actionCreateConferenceCall, SIGNAL(triggered()), qtToolBar, SLOT(createConferenceCall())); 
     203 
     204#if defined (DISABLE_SMS) 
     205        _ui->actionSendSms->setVisible(false); 
     206#elif 
    199207        copyQAction(toolBar, _ui->actionSendSms); 
    200208        SAFE_CONNECT_RECEIVER(_ui->actionSendSms, SIGNAL(triggered()), qtToolBar, SLOT(sendSms())); 
     209#endif 
     210         
    201211        SAFE_CONNECT(_ui->actionSaveHistoryAs, SIGNAL(triggered()), SLOT(saveChatHistory())); 
    202212        SAFE_CONNECT(_ui->actionActionRestartChat, SIGNAL(triggered()), SLOT(restartChat())); 
    203213        //// 
    204214 
    205 #ifndef DISABLE_FILETRANSFER 
     215#if defined (DISABLE_FILETRANSFER) 
     216        _ui->actionSendFile->setVisible(false); 
     217        _ui->actionShowFileTransfer->setVisible(false); 
     218#elif 
    206219        // setup "tools" menu 
    207220        copyQAction(toolBar, _ui->actionShowFileTransfer); 
  • wengophone/src/presentation/qt/chat/QtChatWindow.cpp

    r440 r498  
    166166        addChatWidgetTab(_imChatSession, from); 
    167167        //// 
     168                 
     169#if defined(OS_MACOSX) 
     170        setUnifiedTitleAndToolBarOnMac(true); 
     171#endif 
    168172} 
    169173 
Note: See TracChangeset for help on using the changeset viewer.