Changeset 6139 for trunk/qt4-gui/src/config
- Timestamp:
- 04/10/08 02:50:04 (8 months ago)
- Location:
- trunk/qt4-gui/src/config
- Files:
-
- 2 modified
-
general.cpp (modified) (3 diffs)
-
general.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/config/general.cpp
r6090 r6139 64 64 iniFile.ReadStr("MsgPopupKey", szTemp, "none"); 65 65 myMsgPopupKey = (strcmp(szTemp, "none") != 0 ? QString::fromLatin1(szTemp) : QString()); 66 iniFile.ReadBool("DelayStatusChange", myDelayStatusChange, false); 66 67 67 68 iniFile.SetSection("appearance"); … … 133 134 iniFile.SetSection("functions"); 134 135 iniFile.WriteStr("MsgPopupKey", myMsgPopupKey.isEmpty() ? "none" : myMsgPopupKey.toLatin1()); 136 iniFile.WriteBool("DelayStatusChange", myDelayStatusChange); 135 137 136 138 iniFile.SetSection("appearance"); … … 208 210 } 209 211 212 void Config::General::setDelayStatusChange(bool delayStatusChange) 213 { 214 if (delayStatusChange == myDelayStatusChange) 215 return; 216 217 myDelayStatusChange = delayStatusChange; 218 } 219 210 220 void Config::General::setMsgPopupKey(QString msgPopupKey) 211 221 { -
trunk/qt4-gui/src/config/general.h
r6090 r6139 78 78 bool useDoubleReturn() const { return myUseDoubleReturn; } 79 79 QString msgPopupKey() const { return myMsgPopupKey; } 80 bool delayStatusChange() const { return myDelayStatusChange; } 80 81 QFont defaultFont() const { return myDefaultFont; } 81 82 QFont normalFont() const; … … 120 121 void setUseDoubleReturn(bool useDoubleReturn); 121 122 void setMsgPopupKey(QString msgPopupKey); 123 void setDelayStatusChange(bool delayStatusChange); 122 124 void setNormalFont(QString normalFont); 123 125 void setEditFont(QString editFont); … … 189 191 bool myUseDoubleReturn; 190 192 QString myMsgPopupKey; 193 bool myDelayStatusChange; 191 194 QFont myDefaultFont; 192 195 QFont myEditFont;
