Changeset 6249 for trunk/qt4-gui/src/config
- Timestamp:
- 06/11/08 05:31:29 (6 months ago)
- Location:
- trunk/qt4-gui/src/config
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/config/chat.cpp
r6212 r6249 99 99 100 100 iniFile.SetSection("locale"); 101 iniFile.ReadStr("DefaultEncoding", szTemp, "");102 myDefaultEncoding = szTemp;103 101 iniFile.ReadBool("ShowAllEncodings", myShowAllEncodings, false); 104 102 … … 158 156 159 157 iniFile.SetSection("locale"); 160 iniFile.WriteStr("DefaultEncoding", myDefaultEncoding);161 158 iniFile.WriteBool("ShowAllEncodings", myShowAllEncodings); 162 159 … … 238 235 } 239 236 240 void Config::Chat::setDefaultEncoding(QByteArray defaultEncoding)241 {242 if (defaultEncoding == myDefaultEncoding)243 return;244 245 myDefaultEncoding = defaultEncoding;246 }247 248 237 void Config::Chat::setTabbedChatting(bool tabbedChatting) 249 238 { -
trunk/qt4-gui/src/config/chat.h
r6173 r6249 76 76 bool showDlgButtons() const { return myShowDlgButtons; } 77 77 bool showAllEncodings() const { return myShowAllEncodings; } 78 QByteArray defaultEncoding() const { return myDefaultEncoding; }79 78 bool tabbedChatting() const { return myTabbedChatting; } 80 79 bool showHistory() const { return myShowHistory; } … … 126 125 void setShowDlgButtons(bool showDlgButtons); 127 126 void setShowAllEncodings(bool showAllEncodings); 128 void setDefaultEncoding(QByteArray defaultEncoding);129 127 void setTabbedChatting(bool tabbedChatting); 130 128 void setShowHistory(bool showHistory); … … 203 201 QString myChatBackColor; 204 202 205 QByteArray myDefaultEncoding;206 207 203 QRect myDialogRect; 208 204
