summaryrefslogtreecommitdiffstats
path: root/atlantikdesigner/designer/group.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /atlantikdesigner/designer/group.h
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'atlantikdesigner/designer/group.h')
-rw-r--r--atlantikdesigner/designer/group.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/atlantikdesigner/designer/group.h b/atlantikdesigner/designer/group.h
index b1ebf99..ece7638 100644
--- a/atlantikdesigner/designer/group.h
+++ b/atlantikdesigner/designer/group.h
@@ -1,8 +1,8 @@
#ifndef GROUP_H
#define GROUP_H
-#include <qcolor.h>
-#include <qptrlist.h>
+#include <tqcolor.h>
+#include <tqptrlist.h>
#include <kdialogbase.h>
@@ -22,40 +22,40 @@ class ConfigEstateGroup
{
public:
ConfigEstateGroup() { init(); }
- ConfigEstateGroup(const QString &name) { setName(name); init(); }
+ ConfigEstateGroup(const TQString &name) { setName(name); init(); }
void init() { setHousePrice(0); setGlobalPrice(0); }
void setHousePrice(int newPrice) { m_housePrice = newPrice; }
int housePrice()const { return m_housePrice; }
void setGlobalPrice(int newGlobalPrice) { m_globalPrice = newGlobalPrice; }
int globalPrice()const { return m_globalPrice; }
- const QString &rentMath() { return m_rentMath; }
- void setRentMath(const QString &newMath) { m_rentMath = newMath; }
+ const TQString &rentMath() { return m_rentMath; }
+ void setRentMath(const TQString &newMath) { m_rentMath = newMath; }
bool dynamicRent()const { return !m_rentMath.isEmpty(); }
- void setName(const QString &name) { m_name = name; }
- const QString &name() { return m_name; }
+ void setName(const TQString &name) { m_name = name; }
+ const TQString &name() { return m_name; }
- const QColor &fgColor() { return m_fgColor; }
- void setFgColor(const QColor &color) { m_fgColor = color; }
- const QColor &bgColor() { return m_bgColor; }
- void setBgColor(const QColor &color) { m_bgColor = color; }
+ const TQColor &fgColor() { return m_fgColor; }
+ void setFgColor(const TQColor &color) { m_fgColor = color; }
+ const TQColor &bgColor() { return m_bgColor; }
+ void setBgColor(const TQColor &color) { m_bgColor = color; }
private:
- QColor m_fgColor;
- QColor m_bgColor;
- QString m_rentMath;
+ TQColor m_fgColor;
+ TQColor m_bgColor;
+ TQString m_rentMath;
int m_housePrice;
int m_globalPrice;
- QString m_name;
+ TQString m_name;
};
-typedef QValueList<ConfigEstateGroup> ConfigEstateGroupList;
+typedef TQValueList<ConfigEstateGroup> ConfigEstateGroupList;
class GroupEditor : public KDialogBase
{
Q_OBJECT
public:
- GroupEditor(ConfigEstateGroupList *, QWidget *parent=0);
+ GroupEditor(ConfigEstateGroupList *, TQWidget *parent=0);
signals:
void changed();
@@ -66,12 +66,12 @@ class GroupEditor : public KDialogBase
virtual void slotApply();
private slots:
- void updateSettings(QListBoxItem *item);
- void fgChanged(const QColor &);
- void bgChanged(const QColor &);
+ void updateSettings(TQListBoxItem *item);
+ void fgChanged(const TQColor &);
+ void bgChanged(const TQColor &);
void housePriceChanged(int);
void globalPriceChanged(int);
- void rentMathChanged(const QString &);
+ void rentMathChanged(const TQString &);
void add();
void remove();
void selectionChanged();
@@ -81,13 +81,13 @@ class GroupEditor : public KDialogBase
KLineEdit *rentMathEdit;
KColorButton *fgButton;
KColorButton *bgButton;
- QWidget *pricesWidget;
- QWidget *mathWidget;
- QSpinBox *housePrice;
- QSpinBox *globalPrice;
- QVGroupBox *colorGroupBox;
- QVGroupBox *pricesGroupBox;
- QVGroupBox *dynamicGroupBox;
+ TQWidget *pricesWidget;
+ TQWidget *mathWidget;
+ TQSpinBox *housePrice;
+ TQSpinBox *globalPrice;
+ TQVGroupBox *colorGroupBox;
+ TQVGroupBox *pricesGroupBox;
+ TQVGroupBox *dynamicGroupBox;
KPushButton *removeB;
ConfigEstateGroupList *list;