summaryrefslogtreecommitdiffstats
path: root/src/libgui/likeback.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/libgui/likeback.h
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
TQt4 port piklab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/libgui/likeback.h')
-rw-r--r--src/libgui/likeback.h58
1 files changed, 30 insertions, 28 deletions
diff --git a/src/libgui/likeback.h b/src/libgui/likeback.h
index 70a68dd..1fdb165 100644
--- a/src/libgui/likeback.h
+++ b/src/libgui/likeback.h
@@ -21,11 +21,11 @@
#define LIKEBACK_H
#include <kdialog.h>
-#include <qtimer.h>
+#include <tqtimer.h>
-class QTextEdit;
-class QToolButton;
-class QPushButton;
+class TQTextEdit;
+class TQToolButton;
+class TQPushButton;
class KProcess;
class KConfig;
class KAboutData;
@@ -33,9 +33,10 @@ class KAboutData;
/**
* @author S�astien Laot <slaout@linux62.org>
*/
-class LikeBack : public QWidget
+class LikeBack : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
enum Button { ILike = 0x01, IDoNotLike = 0x02, IFoundABug = 0x04, Configure = 0x10,
AllButtons = ILike | IDoNotLike | IFoundABug | Configure };
@@ -44,27 +45,27 @@ class LikeBack : public QWidget
~LikeBack();
static void showInformationMessage();
static LikeBack* instance();
- static QString customLanguageMessage();
+ static TQString customLanguageMessage();
static bool allowFeatureWishes();
- static QString hostName();
- static QString remotePath();
- static Q_UINT16 hostPort();
- static void setServer(QString hostName, QString remotePath, Q_UINT16 hostPort = 80);
+ static TQString hostName();
+ static TQString remotePath();
+ static TQ_UINT16 hostPort();
+ static void setServer(TQString hostName, TQString remotePath, TQ_UINT16 hostPort = 80);
static void setWindowNamesListing(WindowListing windowListing);
- static void setCustomLanguageMessage(const QString &message);
+ static void setCustomLanguageMessage(const TQString &message);
static void setAllowFeatureWishes(bool allow);
static bool enabled();
static void disable();
static void enable();
static bool userWantToParticipate(); /// << @Returns true if the user have not disabled LikeBack for this version
static bool emailAddressAlreadyProvided();
- static QString emailAddress(); /// << @Returns the email user address, or ask it to the user if he haven't provided or ignored it
- static void setEmailAddress(const QString &address); /// << Calling emailAddress() will ask it to the user the first time
- static bool isDevelopmentVersion(const QString &version = QString::null); /// << @Returns true if version is an alpha/beta/rc/svn/cvs version. Use kapp->aboutData()->version is @p version is empty
+ static TQString emailAddress(); /// << @Returns the email user address, or ask it to the user if he haven't provided or ignored it
+ static void setEmailAddress(const TQString &address); /// << Calling emailAddress() will ask it to the user the first time
+ static bool isDevelopmentVersion(const TQString &version = TQString()); /// << @Returns true if version is an alpha/beta/rc/svn/cvs version. Use kapp->aboutData()->version is @p version is empty
static void init(Button buttons = AllButtons); /// << Initialize the LikeBack system: enable it if the application version is a development one.
static void init(bool isDevelopmentVersion, Button buttons = AllButtons); /// << Initialize the LikeBack system: enable it if @p isDevelopmentVersion is true.
static void init(KConfig* config, KAboutData* about, Button buttons = AllButtons);
- static QString activeWindowPath();
+ static TQString activeWindowPath();
static KAboutData* about();
public slots:
void iLike();
@@ -80,17 +81,17 @@ class LikeBack : public QWidget
void showWhatsThisMessage();
void askEMail();
// void beginFetchingEmail();
- void endFetchingEmailFrom(); // static QString fetchingEmail();
+ void endFetchingEmailFrom(); // static TQString fetchingEmail();
private:
- QTimer m_timer;
+ TQTimer m_timer;
Button m_buttons;
- QToolButton *m_configureButton;
- QString m_fetchedEmail;
+ TQToolButton *m_configureButton;
+ TQString m_fetchedEmail;
KProcess *m_process;
- static QString s_hostName;
- static QString s_remotePath;
- static Q_UINT16 s_hostPort;
- static QString s_customLanguageMessage;
+ static TQString s_hostName;
+ static TQString s_remotePath;
+ static TQ_UINT16 s_hostPort;
+ static TQString s_customLanguageMessage;
static bool s_allowFeatureWishes;
static WindowListing s_windowListing;
static LikeBack *s_instance;
@@ -102,15 +103,16 @@ class LikeBack : public QWidget
class LikeBackDialog : public KDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- LikeBackDialog(LikeBack::Button reason, QString windowName, QString context);
+ LikeBackDialog(LikeBack::Button reason, TQString windowName, TQString context);
~LikeBackDialog();
private:
LikeBack::Button m_reason;
- QTextEdit *m_comment;
- QPushButton *m_sendButton;
- QString m_windowName;
- QString m_context;
+ TQTextEdit *m_comment;
+ TQPushButton *m_sendButton;
+ TQString m_windowName;
+ TQString m_context;
private slots:
void send();
void requestFinished(int id, bool error);