Changeset 6235 for trunk/qt-gui
- Timestamp:
- 06/05/08 03:25:29 (6 months ago)
- Location:
- trunk/qt-gui/src
- Files:
-
- 3 modified
-
chatdlg.cpp (modified) (2 diffs)
-
chatjoin.cpp (modified) (1 diff)
-
mainwin.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt-gui/src/chatdlg.cpp
r5328 r6235 578 578 iter->u->ColorBg()[2]); 579 579 QFont f(iter->w->font()); 580 f.setFixedPitch(iter->u->FontStyle() & 0x0F == STYLE_FIXEDxPITCH);580 f.setFixedPitch(iter->u->FontStyle() && 0x0F == STYLE_FIXEDxPITCH); 581 581 582 582 switch (iter->u->FontStyle() & 0xF0) … … 847 847 { 848 848 QFont f(GetWindow(u)->font()); 849 f.setFixedPitch(u->FontStyle() & 0x0F == STYLE_FIXEDxPITCH);849 f.setFixedPitch(u->FontStyle() && 0x0F == STYLE_FIXEDxPITCH); 850 850 851 851 switch (u->FontStyle() & 0xF0) -
trunk/qt-gui/src/chatjoin.cpp
r5473 r6235 123 123 for (iter = originalChats.begin(); 124 124 iter != originalChats.end() && n < lstChats->currentItem(); 125 iter++, n++); 125 iter++, n++) 126 ; 126 127 127 128 ChatDlg *cd = *iter; -
trunk/qt-gui/src/mainwin.cpp
r6201 r6235 237 237 if((unsigned short) Status != ICQ_STATUS_OFFLINE && (Status & ICQ_STATUS_FxPRIVATE) 238 238 && !gMainWindow->m_bShowExtendedIcons) 239 { 239 240 if (nPPID == MSN_PPID) 240 241 return gMainWindow->pmMSNPrivate; 241 242 else 242 243 return gMainWindow->pmPrivate; 243 244 } 245 244 246 if ((unsigned short) Status == ICQ_STATUS_OFFLINE) 247 { 245 248 if (nPPID == MSN_PPID) 246 249 return gMainWindow->pmMSNOffline; … … 249 252 else 250 253 return gMainWindow->pmOffline; 254 } 251 255 252 256 if (Status & ICQ_STATUS_DND) 257 { 253 258 if (nPPID == MSN_PPID) 254 259 return gMainWindow->pmMSNOccupied; … … 257 262 else 258 263 return gMainWindow->pmDnd; 264 } 259 265 260 266 if (Status & ICQ_STATUS_OCCUPIED) 267 { 261 268 if (nPPID == MSN_PPID) 262 269 return gMainWindow->pmMSNOccupied; … … 265 272 else 266 273 return gMainWindow->pmOccupied; 274 } 267 275 268 276 if (Status & ICQ_STATUS_NA) 277 { 269 278 if (nPPID == MSN_PPID) 270 279 return gMainWindow->pmMSNAway; … … 273 282 else 274 283 return gMainWindow->pmNa; 284 } 275 285 276 286 if (Status & ICQ_STATUS_AWAY) 287 { 277 288 if (nPPID == MSN_PPID) 278 289 return gMainWindow->pmMSNAway; … … 281 292 else 282 293 return gMainWindow->pmAway; 294 } 283 295 284 296 if (Status & ICQ_STATUS_FREEFORCHAT) return gMainWindow->pmFFC; … … 1019 1031 // btnSystem 1020 1032 if (btnSystem != NULL) 1033 { 1021 1034 if ((skin->btnSys.rect.x1 == skin->btnSys.rect.x2) && (skin->btnSys.rect.y1 == skin->btnSys.rect.y2)) 1022 1035 btnSystem->hide(); 1023 1036 else 1024 1037 btnSystem->show(); 1038 } 1025 1039 // lblStatus 1026 1040 if (lblStatus != NULL) 1041 { 1027 1042 if ((skin->lblStatus.rect.x1 == skin->lblStatus.rect.x2) && (skin->lblStatus.rect.y1 == skin->lblStatus.rect.y2)) 1028 1043 lblStatus->hide(); 1029 1044 else 1030 1045 lblStatus->show(); 1046 } 1031 1047 // lblMsg 1032 1048 if (lblMsg != NULL) 1049 { 1033 1050 if ((skin->lblMsg.rect.x1 == skin->lblMsg.rect.x2) && (skin->lblMsg.rect.y1 == skin->lblMsg.rect.y2)) 1034 1051 lblMsg->hide(); 1035 1052 else 1036 1053 lblMsg->show(); 1054 } 1037 1055 // cmbGroups 1038 1056 if (cmbUserGroups != NULL) 1057 { 1039 1058 if ((skin->cmbGroups.rect.x1 == skin->cmbGroups.rect.x2) && (skin->cmbGroups.rect.y1 == skin->cmbGroups.rect.y2)) 1040 1059 cmbUserGroups->hide(); 1041 1060 else 1042 1061 cmbUserGroups->show(); 1062 } 1043 1063 if (menu != NULL) menu->show(); 1044 1064 updateUserWin(); … … 1151 1171 // cmbUserGroups 1152 1172 if (cmbUserGroups != NULL) 1173 { 1153 1174 if ((skin->cmbGroups.rect.x1 == skin->cmbGroups.rect.x2) && (skin->cmbGroups.rect.y1 == skin->cmbGroups.rect.y2)) 1154 1175 cmbUserGroups->hide(); 1155 1176 else 1156 1177 cmbUserGroups->setGeometry(skin->borderToRect(&skin->cmbGroups, this)); 1178 } 1157 1179 // lblMsg 1158 1180 if (lblMsg != NULL) 1181 { 1159 1182 if ((skin->lblMsg.rect.x1 == skin->lblMsg.rect.x2) && (skin->lblMsg.rect.y1 == skin->lblMsg.rect.y2)) 1160 1183 lblMsg->hide(); 1161 1184 else 1162 1185 lblMsg->setGeometry(skin->borderToRect(&skin->lblMsg, this)); 1186 } 1163 1187 // lblStatus 1164 1188 if (lblStatus != NULL) 1189 { 1165 1190 if ((skin->lblStatus.rect.x1 == skin->lblStatus.rect.x2) && (skin->lblStatus.rect.y1 == skin->lblStatus.rect.y2)) 1166 1191 lblStatus->hide(); 1167 1192 else 1168 1193 lblStatus->setGeometry(skin->borderToRect(&skin->lblStatus, this)); 1194 } 1169 1195 // btnSystem 1170 1196 if (btnSystem != NULL) 1197 { 1171 1198 if ((skin->btnSys.rect.x1 == skin->btnSys.rect.x2) && (skin->btnSys.rect.y1 == skin->btnSys.rect.y2)) 1172 1199 btnSystem->hide(); 1173 1200 else 1174 1201 btnSystem->setGeometry(skin->borderToRect(&skin->btnSys, this)); 1202 } 1175 1203 } 1176 1204
