diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /libkdegames/kcarddialog.h | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdegames/kcarddialog.h')
-rw-r--r-- | libkdegames/kcarddialog.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/libkdegames/kcarddialog.h b/libkdegames/kcarddialog.h index b32fd636..fae37b97 100644 --- a/libkdegames/kcarddialog.h +++ b/libkdegames/kcarddialog.h @@ -19,9 +19,9 @@ #ifndef __KCARDDIALOG_H_ #define __KCARDDIALOG_H_ -#include <qstring.h> +#include <tqstring.h> #include <kdialogbase.h> -#include <qmap.h> // TODO: remove - it is in kcarddialog.cpp now; left here for source compatibility +#include <tqmap.h> // TODO: remove - it is in kcarddialog.cpp now; left here for source compatibility #include <kdemacros.h> class QIconViewItem; @@ -48,7 +48,7 @@ class KCardDialogPrivate; * Example: * * \code - * QString deck,card; + * TQString deck,card; * int result = KCardDialog::getCardDeck(deck,card ); * if ( result == KCardDialog::Accepted ) * ... @@ -75,10 +75,10 @@ class KCardDialogPrivate; * Another Parameter for KCardDialog::getCardDeck is scale. This pointer * to a double variable contains the scaling factor the user has chosen in the * dialog (the scale box won't be shown if you don't provide this parameter). - * You might want to check out QPixmap::xFrom which gives you access to + * You might want to check out TQPixmap::xFrom which gives you access to * scaling. You can e.g. use * \code - * QWMatrix m; + * TQWMatrix m; * m.scale(s,s); * pixmap.xForm(m); * \endcode @@ -107,7 +107,7 @@ public: * @param name The name of the dialog. * @param flags Specifies whether the dialog is modal or not. */ - KCardDialog (QWidget* parent = NULL,const char* name = NULL, + KCardDialog (TQWidget* parent = NULL,const char* name = NULL, CardFlags flags = Both); /** * Destructs a card deck selection dialog. @@ -151,9 +151,9 @@ public: * parameters randomDeck and randomCardDir overwrite the initial settings from the * config file. * - * @return QDialog::result(). + * @return TQDialog::result(). */ - static int getCardDeck(QString &deck,QString &carddir, QWidget *parent=0, + static int getCardDeck(TQString &deck,TQString &carddir, TQWidget *parent=0, CardFlags flags=Both, bool* randomDeck=0, bool* randomCardDir=0, double* scale=0, KConfig* conf=0); @@ -172,7 +172,7 @@ public: * random cardDir if this is desired according to the config) * @param scale The scaling factor (usually 1) **/ - static void getConfigCardDeck(KConfig* conf, QString& deck, QString& cardDir, double& scale); + static void getConfigCardDeck(KConfig* conf, TQString& deck, TQString& cardDir, double& scale); /** * Returns the default path to the card deck backsides. You want @@ -185,7 +185,7 @@ public: * * @return The default path */ - static QString getDefaultDeck(); + static TQString getDefaultDeck(); /** * Returns the default path to the card frontsides. You want @@ -198,7 +198,7 @@ public: * * @return returns the path to the card directory */ - static QString getDefaultCardDir(); + static TQString getDefaultCardDir(); /** * Returns the path to the card frontside specified in dir carddir @@ -207,19 +207,19 @@ public: * @param carddir The carddir which's path shall be searched for * @return returns the path to the card */ - static QString getCardPath(const QString &carddir, int index); + static TQString getCardPath(const TQString &carddir, int index); /** * Returns a random deck in deckPath() * @return A random deck **/ - static QString getRandomDeck(); + static TQString getRandomDeck(); /** * Returns a random directory of cards * @return A random card dir **/ - static QString getRandomCardDir(); + static TQString getRandomCardDir(); /** * Show or hides the "random backside" checkbox @@ -238,24 +238,24 @@ public: * * @return The deck */ - const QString& deck() const; + const TQString& deck() const; /** * Sets the default deck. * @param file The full path to an image file */ - void setDeck(const QString& file); + void setDeck(const TQString& file); /** * @return The chosen card directory */ - const QString& cardDir() const; + const TQString& cardDir() const; /** * Sets the default card directory. * @param dir The full path to an card directory */ - void setCardDir(const QString& dir); + void setCardDir(const TQString& dir); /** * @return the flags set to the dialog @@ -315,20 +315,20 @@ protected: void insertCardIcons(); void insertDeckIcons(); - static void getGlobalDeck(QString& cardDir, bool& random); - static void getGlobalCardDir(QString& deck, bool& random); + static void getGlobalDeck(TQString& cardDir, bool& random); + static void getGlobalCardDir(TQString& deck, bool& random); - static QString getDeckName(const QString& desktop); + static TQString getDeckName(const TQString& desktop); /** * @return the groupname used by functions like @ref saveConfig and @ref * loadConfig. **/ - static QString group(); + static TQString group(); protected slots: - void slotDeckClicked(QIconViewItem *); - void slotCardClicked(QIconViewItem *); + void slotDeckClicked(TQIconViewItem *); + void slotCardClicked(TQIconViewItem *); void slotRandomCardDirToggled(bool on); void slotRandomDeckToggled(bool on); void slotCardResized(int); |