summaryrefslogtreecommitdiffstats
path: root/src/tellico_utils.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/tellico_utils.h
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-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/tellico_utils.h')
-rw-r--r--src/tellico_utils.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/tellico_utils.h b/src/tellico_utils.h
index 13250e6..2b61fc1 100644
--- a/src/tellico_utils.h
+++ b/src/tellico_utils.h
@@ -14,16 +14,16 @@
#ifndef TELLICO_UTILS_H
#define TELLICO_UTILS_H
-#include <qnamespace.h>
+#include <tqnamespace.h>
class KLibrary;
-class QColor;
-class QColorGroup;
-class QCursor;
-class QString;
-class QStringList;
-class QScrollView;
+class TQColor;
+class TQColorGroup;
+class TQCursor;
+class TQString;
+class TQStringList;
+class TQScrollView;
/**
* This file contains utility functions.
@@ -34,40 +34,40 @@ namespace Tellico {
/**
* Decode HTML entities. Only numeric entities are handled currently.
*/
- QString decodeHTML(QString text);
+ TQString decodeHTML(TQString text);
/**
* Return a random, and almost certainly unique UID.
*
* @param length The UID starts with "Tellico" and adds enough letters to be @p length long.
*/
- QString uid(int length=20, bool prefix=true);
- uint toUInt(const QString& string, bool* ok);
+ TQString uid(int length=20, bool prefix=true);
+ uint toUInt(const TQString& string, bool* ok);
/**
* Replace all occurrences of <i18n>text</i18n> with i18n("text")
*/
- QString i18nReplace(QString text);
+ TQString i18nReplace(TQString text);
/**
* Returns a list of the subdirectories in @param dir
* Symbolic links are ignored
*/
- QStringList findAllSubDirs(const QString& dir);
- int stringHash(const QString& str);
+ TQStringList findAllSubDirs(const TQString& dir);
+ int stringHash(const TQString& str);
/** take advantage string collisions to reduce memory
*/
- QString shareString(const QString& str);
+ TQString shareString(const TQString& str);
- extern QColor contrastColor;
- void updateContrastColor(const QColorGroup& cg);
- QColor blendColors(const QColor& color1, const QColor& color2, int percent);
- QString minutes(int seconds);
- QString saveLocation(const QString& dir);
+ extern TQColor contrastColor;
+ void updateContrastColor(const TQColorGroup& cg);
+ TQColor blendColors(const TQColor& color1, const TQColor& color2, int percent);
+ TQString minutes(int seconds);
+ TQString saveLocation(const TQString& dir);
- KLibrary* openLibrary(const QString& libName);
+ KLibrary* openLibrary(const TQString& libName);
namespace GUI {
class CursorSaver {
public:
- CursorSaver(const QCursor& cursor = Qt::waitCursor);
+ CursorSaver(const TQCursor& cursor = TQt::waitCursor);
~CursorSaver();
void restore();
private: