diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/core/tellico_config_addons.cpp | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
TQt4 port tellico
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/core/tellico_config_addons.cpp')
-rw-r--r-- | src/core/tellico_config_addons.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/core/tellico_config_addons.cpp b/src/core/tellico_config_addons.cpp index 9b388d5..e4e7260 100644 --- a/src/core/tellico_config_addons.cpp +++ b/src/core/tellico_config_addons.cpp @@ -54,7 +54,7 @@ SET(name, BoardGame, value) namespace { - static const QRegExp commaSplit = QRegExp(QString::fromLatin1("\\s*,\\s*")); + static const TQRegExp commaSplit = TQRegExp(TQString::tqfromLatin1("\\s*,\\s*")); } using Tellico::Config; @@ -64,96 +64,96 @@ void Config::deleteAndReset() { mSelf = 0; } -QStringList Config::noCapitalizationList() { - return QStringList::split(commaSplit, Config::noCapitalizationString()); +TQStringList Config::noCapitalizationList() { + return TQStringList::split(commaSplit, Config::noCapitalizationString()); } -QStringList Config::articleList() { - return QStringList::split(commaSplit, Config::articlesString()); +TQStringList Config::articleList() { + return TQStringList::split(commaSplit, Config::articlesString()); } -QStringList Config::nameSuffixList() { - return QStringList::split(commaSplit, Config::nameSuffixesString()); +TQStringList Config::nameSuffixList() { + return TQStringList::split(commaSplit, Config::nameSuffixesString()); } -QStringList Config::surnamePrefixList() { - return QStringList::split(commaSplit, Config::surnamePrefixesString()); +TQStringList Config::surnamePrefixList() { + return TQStringList::split(commaSplit, Config::surnamePrefixesString()); } -QString Config::templateName(int type_) { +TQString Config::templateName(int type_) { switch(type_) { ALL_GET(template); } - return QString(); + return TQString(); } -QFont Config::templateFont(int type_) { +TQFont Config::templateFont(int type_) { switch(type_) { ALL_GET(font); } - return QFont(); + return TQFont(); } -QColor Config::templateBaseColor(int type_) { +TQColor Config::templateBaseColor(int type_) { switch(type_) { ALL_GET(baseColor) } - return QColor(); + return TQColor(); } -QColor Config::templateTextColor(int type_) { +TQColor Config::templateTextColor(int type_) { switch(type_) { ALL_GET(textColor) } - return QColor(); + return TQColor(); } -QColor Config::templateHighlightedBaseColor(int type_) { +TQColor Config::templateHighlightedBaseColor(int type_) { switch(type_) { ALL_GET(highlightedBaseColor) } - return QColor(); + return TQColor(); } -QColor Config::templateHighlightedTextColor(int type_) { +TQColor Config::templateHighlightedTextColor(int type_) { switch(type_) { ALL_GET(highlightedTextColor) } - return QColor(); + return TQColor(); } -void Config::setTemplateName(int type_, const QString& name_) { +void Config::setTemplateName(int type_, const TQString& name_) { switch(type_) { ALL_SET(setTemplate,name_) } } -void Config::setTemplateFont(int type_, const QFont& font_) { +void Config::setTemplateFont(int type_, const TQFont& font_) { switch(type_) { ALL_SET(setFont,font_) } } -void Config::setTemplateBaseColor(int type_, const QColor& color_) { +void Config::setTemplateBaseColor(int type_, const TQColor& color_) { switch(type_) { ALL_SET(setBaseColor,color_) } } -void Config::setTemplateTextColor(int type_, const QColor& color_) { +void Config::setTemplateTextColor(int type_, const TQColor& color_) { switch(type_) { ALL_SET(setTextColor,color_) } } -void Config::setTemplateHighlightedBaseColor(int type_, const QColor& color_) { +void Config::setTemplateHighlightedBaseColor(int type_, const TQColor& color_) { switch(type_) { ALL_SET(setHighlightedBaseColor,color_) } } -void Config::setTemplateHighlightedTextColor(int type_, const QColor& color_) { +void Config::setTemplateHighlightedTextColor(int type_, const TQColor& color_) { switch(type_) { ALL_SET(setHighlightedTextColor,color_) } |