Changeset 290:a5f049dd482b in qutecom-coip
- Timestamp:
- Jul 28, 2011 10:47:23 PM (22 months ago)
- Branch:
- default
- Tags:
- tip
- Location:
- gui/src/call
- Files:
-
- 2 edited
-
callwidget.cpp (modified) (7 diffs)
-
callwidget.ui (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gui/src/call/callwidget.cpp
r283 r290 11 11 _lastStatus = EnumPhoneCallState::PhoneCallStateIncoming; 12 12 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); 18 26 19 27 _remoteVideoFrame = QPixmap(":/qute.png"); … … 40 48 41 49 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); 46 62 47 63 _remoteVideoFrame = QPixmap(":/qute.png"); … … 100 116 if(_lastStatus != EnumPhoneCallState::PhoneCallStateTalking) 101 117 { 102 painter.fillRect(centralWidget()->rect(),QColor( 30,30,30,200));118 painter.fillRect(centralWidget()->rect(),QColor(0,0,0,225)); 103 119 104 120 if(!_timerIdProgressAnimation && (_lastStatus == EnumPhoneCallState::PhoneCallStateIncoming || _lastStatus == EnumPhoneCallState::PhoneCallStateHold)) … … 221 237 stopProgressAnimation(); 222 238 stopSessionTimer(); 223 _labelMsg->setText("Closed...");239 //_labelMsg->setText("Closed..."); 224 240 break; 225 241 … … 227 243 stopProgressAnimation(); 228 244 stopSessionTimer(); 229 _labelMsg->setText("Error...");245 //_labelMsg->setText("Error..."); 230 246 break; 231 247 … … 233 249 stopProgressAnimation(); 234 250 startSessionTimer(); 235 _labelMsg->setText("Talking...");251 //_labelMsg->setText("Talking..."); 236 252 break; 237 253 238 254 case EnumPhoneCallState::PhoneCallStateDialing: 239 255 startProgressAnimation(); 240 _labelMsg->setText("Dialing...");256 //_labelMsg->setText("Dialing..."); 241 257 break; 242 258 243 259 case EnumPhoneCallState::PhoneCallStateRinging: 244 _labelMsg->setText("Ringing...");260 //_labelMsg->setText("Ringing..."); 245 261 break; 246 262 247 263 case EnumPhoneCallState::PhoneCallStateHold: 248 264 stopProgressAnimation(); 249 _labelMsg->setText("Hold...");265 //_labelMsg->setText("Hold..."); 250 266 break; 251 267 252 268 case EnumPhoneCallState::PhoneCallStateResumed: 253 _labelMsg->setText("Resumed...");269 //_labelMsg->setText("Resumed..."); 254 270 break; 255 271 256 272 case EnumPhoneCallState::PhoneCallStateMissed: 257 273 stopProgressAnimation(); 258 _labelMsg->setText("Missed...");274 //_labelMsg->setText("Missed..."); 259 275 break; 260 276 … … 262 278 stopProgressAnimation(); 263 279 stopSessionTimer(); 264 _labelMsg->setText("Redirected...");280 //_labelMsg->setText("Redirected..."); 265 281 break; 266 282 -
gui/src/call/callwidget.ui
r177 r290 15 15 </property> 16 16 <property name="styleSheet"> 17 <string notr="true">QStatusBar 18 { 19 background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 #616161, stop: 0.5 #505050,stop: 0.6 #434343, stop:1 #656565); 20 color: white; 21 } 22 23 QWidget 24 { 25 color: white; 26 border-width: 0px; 27 }</string> 17 <string notr="true"/> 28 18 </property> 29 19 <widget class="QWidget" name="centralwidget">
Note: See TracChangeset
for help on using the changeset viewer.
