Changeset 290:a5f049dd482b in qutecom-coip for gui/src/call/callwidget.cpp


Ignore:
Timestamp:
Jul 28, 2011 10:47:23 PM (22 months ago)
Author:
laurent <laurent@…>
Branch:
default
Tags:
tip
Message:

refresh callwidget

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/src/call/callwidget.cpp

    r283 r290  
    1111        _lastStatus = EnumPhoneCallState::PhoneCallStateIncoming; 
    1212         
    13    // ui->setupUi(this); 
    14  
    15         _labelMsg = new QLabel; 
    16         statusBar()->addWidget(_labelMsg); 
    17         _labelMsg->setText("New Call..."); 
     13    ui->setupUi(this); 
     14     
     15#if defined(OS_MACOSX) 
     16        setUnifiedTitleAndToolBarOnMac(true); 
     17#endif 
     18     
     19     //_labelMsg = new QLabel; 
     20        //_labelMsg->setText("New Call..."); 
     21     QToolBar * _toolBar = new QToolBar; 
     22     //_toolBar->layout()->setMargin(0); 
     23     //_toolBar->layout()->setSpacing(0); 
     24     //_toolBar->addWidget(_labelMsg);   
     25     addToolBar(_toolBar); 
    1826         
    1927        _remoteVideoFrame = QPixmap(":/qute.png"); 
     
    4048         
    4149    ui->setupUi(this); 
    42          
    43         _labelMsg = new QLabel; 
    44         statusBar()->addWidget(_labelMsg); 
    45         _labelMsg->setText("Dialing..."); 
     50     
     51#if defined(OS_MACOSX) 
     52        setUnifiedTitleAndToolBarOnMac(true); 
     53#endif 
     54         
     55    //_labelMsg = new QLabel; 
     56        //_labelMsg->setText("New Call..."); 
     57    QToolBar * _toolBar = new QToolBar; 
     58    //_toolBar->layout()->setMargin(0); 
     59    //_toolBar->layout()->setSpacing(0); 
     60    //_toolBar->addWidget(_labelMsg);    
     61    addToolBar(_toolBar); 
    4662         
    4763        _remoteVideoFrame = QPixmap(":/qute.png"); 
     
    100116        if(_lastStatus != EnumPhoneCallState::PhoneCallStateTalking) 
    101117        { 
    102                 painter.fillRect(centralWidget()->rect(),QColor(30,30,30,200)); 
     118                painter.fillRect(centralWidget()->rect(),QColor(0,0,0,225)); 
    103119         
    104120                if(!_timerIdProgressAnimation && (_lastStatus == EnumPhoneCallState::PhoneCallStateIncoming || _lastStatus == EnumPhoneCallState::PhoneCallStateHold)) 
     
    221237                        stopProgressAnimation(); 
    222238                        stopSessionTimer(); 
    223                         _labelMsg->setText("Closed...");                         
     239                        //_labelMsg->setText("Closed...");                       
    224240                        break; 
    225241                         
     
    227243                        stopProgressAnimation(); 
    228244                        stopSessionTimer(); 
    229                         _labelMsg->setText("Error...");                  
     245                        //_labelMsg->setText("Error...");                        
    230246                        break; 
    231247                         
     
    233249                        stopProgressAnimation(); 
    234250                        startSessionTimer(); 
    235                         _labelMsg->setText("Talking..."); 
     251                        //_labelMsg->setText("Talking..."); 
    236252                        break; 
    237253                         
    238254                case EnumPhoneCallState::PhoneCallStateDialing: 
    239255                        startProgressAnimation(); 
    240                         _labelMsg->setText("Dialing..."); 
     256                        //_labelMsg->setText("Dialing..."); 
    241257                        break; 
    242258                         
    243259                case EnumPhoneCallState::PhoneCallStateRinging: 
    244                         _labelMsg->setText("Ringing..."); 
     260                        //_labelMsg->setText("Ringing..."); 
    245261                        break; 
    246262                         
    247263                case EnumPhoneCallState::PhoneCallStateHold: 
    248264                        stopProgressAnimation(); 
    249                         _labelMsg->setText("Hold..."); 
     265                        //_labelMsg->setText("Hold..."); 
    250266                        break; 
    251267                         
    252268                case EnumPhoneCallState::PhoneCallStateResumed: 
    253                         _labelMsg->setText("Resumed..."); 
     269                        //_labelMsg->setText("Resumed..."); 
    254270                        break; 
    255271                         
    256272                case EnumPhoneCallState::PhoneCallStateMissed: 
    257273                        stopProgressAnimation(); 
    258                         _labelMsg->setText("Missed..."); 
     274                        //_labelMsg->setText("Missed..."); 
    259275                        break; 
    260276                         
     
    262278                        stopProgressAnimation(); 
    263279                        stopSessionTimer(); 
    264                         _labelMsg->setText("Redirected..."); 
     280                        //_labelMsg->setText("Redirected..."); 
    265281                        break; 
    266282                         
Note: See TracChangeset for help on using the changeset viewer.