Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/17/head
Michele Calgaro 8 months ago
parent 04d6c8be13
commit ecdc0343d4
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -183,7 +183,7 @@ type.
class KSomethingDlg : public KBaseClass { class KSomethingDlg : public KBaseClass {
private: private:
QString m_szSomeString; TQString m_szSomeString;
void useString(void); void useString(void);
private slots: private slots:
@ -391,7 +391,7 @@ For example:
<title>Local variable nameing convention</title> <title>Local variable nameing convention</title>
<screen> <screen>
QString qstringTemp; TQString qstringTemp;
char *pszTemp; char *pszTemp;

@ -66,7 +66,7 @@
class &lt;KN&gt;Dlg : public &lt;KN&gt;DlgDecl { class &lt;KN&gt;Dlg : public &lt;KN&gt;DlgDecl {
TQ_OBJECT TQ_OBJECT
public: public:
&lt;KN&gt;Dlg(QWidget *parent = 0, const char *name = 0); &lt;KN&gt;Dlg(TQWidget *parent = 0, const char *name = 0);
~&lt;KN&gt;Dlg(); ~&lt;KN&gt;Dlg();
</programlisting> </programlisting>
<para/> <para/>

@ -101,11 +101,11 @@ private:
/** Attributes to store the variables so they can be undone when /** Attributes to store the variables so they can be undone when
* cancelling the apply. * cancelling the apply.
**/ **/
QColor m_qcolorTempList; TQColor m_qcolorTempList;
QColor m_qcolorTempListBG; TQColor m_qcolorTempListBG;
QFont m_qfontTempHeader; QFont m_qfontTempHeader;
QFont m_qfontTempCell; QFont m_qfontTempCell;
QString m_qstringTempRowCount; TQString m_qstringTempRowCount;
bool m_bTempShowGrid; bool m_bTempShowGrid;
bool m_bTempColourPerTransaction; bool m_bTempColourPerTransaction;
bool m_bTempStartPrompt; bool m_bTempStartPrompt;
@ -129,7 +129,7 @@ public:
/** /**
* Standard constructor. * Standard constructor.
* *
* @param parent The QWidget this is used in. * @param parent The TQWidget this is used in.
* @param name The QT name. * @param name The QT name.
* @param modal True if we want the dialog to be application modal. * @param modal True if we want the dialog to be application modal.
* *
@ -137,7 +137,7 @@ public:
* *
* @see ~KSettingsDlg * @see ~KSettingsDlg
**/ **/
KSettingsDlg(QWidget *parent=0, const char *name=0, bool modal=true); KSettingsDlg(TQWidget *parent=0, const char *name=0, bool modal=true);
/** /**
* Standard destructor. * Standard destructor.
@ -213,7 +213,7 @@ signals:
* KDialogBase * KDialogBase
* to set the buttons to be showed and the type of dialog to be shown. * to set the buttons to be showed and the type of dialog to be shown.
**/ **/
KSettingsDlg::KSettingsDlg(QWidget *parent, const char *name, bool modal) KSettingsDlg::KSettingsDlg(TQWidget *parent, const char *name, bool modal)
: KDialogBase(IconList, i18n("Configure"), Ok|Cancel|Apply|User1, Ok, parent, : KDialogBase(IconList, i18n("Configure"), Ok|Cancel|Apply|User1, Ok, parent,
name, modal, true, i18n("&amp;Reset")) name, modal, true, i18n("&amp;Reset"))
{ {
@ -274,7 +274,7 @@ void KSettingsDlg::setPageList()
QTabWidget *qtabwidget = new QTabWidget(qvboxMainFrame, "TabWidget2"); QTabWidget *qtabwidget = new QTabWidget(qvboxMainFrame, "TabWidget2");
// Create the first page // Create the first page
QWidget *qwidgetPage = new QWidget(this); TQWidget *qwidgetPage = new TQWidget(this);
// Create the layout for the page // Create the layout for the page
QVBoxLayout *qvboxlayoutPage = new QVBoxLayout(qwidgetPage); QVBoxLayout *qvboxlayoutPage = new QVBoxLayout(qwidgetPage);
@ -338,7 +338,7 @@ void KSettingsDlg::setPageList()
qtabwidget->insertTab(qwidgetPage, i18n("General")); qtabwidget->insertTab(qwidgetPage, i18n("General"));
// Create a new tab for the colour options // Create a new tab for the colour options
QWidget *qwidgetColour = new QWidget(qtabwidget, "tab"); TQWidget *qwidgetColour = new TQWidget(qtabwidget, "tab");
// Create a vertical layout // Create a vertical layout
QVBoxLayout *qvboxlayoutColour = new QVBoxLayout(qwidgetColour); QVBoxLayout *qvboxlayoutColour = new QVBoxLayout(qwidgetColour);
@ -416,8 +416,8 @@ void KSettingsDlg::configRead()
tdeconfig->setGroup("List Options"); tdeconfig->setGroup("List Options");
QFont qfontDefault = QFont("helvetica", 12); QFont qfontDefault = QFont("helvetica", 12);
QColor qcolorDefault = Qt::white; TQColor qcolorDefault = Qt::white;
QColor qcolorDefaultBG = Qt::gray; TQColor qcolorDefaultBG = Qt::gray;
m_qcolorTempList = tdeconfig->readColorEntry("listColor", &amp;qcolorDefault); m_qcolorTempList = tdeconfig->readColorEntry("listColor", &amp;qcolorDefault);
m_kcolorbuttonList->setColor(m_qcolorTempList); m_kcolorbuttonList->setColor(m_qcolorTempList);

@ -173,7 +173,7 @@ test case, some logic is necessary to print the name only once.
class MyProgressListener : public CppUnit::TextTestProgressListener class MyProgressListener : public CppUnit::TextTestProgressListener
{ {
void startTest(CppUnit::Test *test) { void startTest(CppUnit::Test *test) {
QString name = test-&gt;getName().c_str(); TQString name = test-&gt;getName().c_str();
name = name.mid(2); // cut off first 2 chars name = name.mid(2); // cut off first 2 chars
name = name.left(name.find('.')); name = name.left(name.find('.'));
if(m_name != name) { if(m_name != name) {
@ -184,7 +184,7 @@ class MyProgressListener : public CppUnit::TextTestProgressListener
} }
} }
private: private:
QString m_name; TQString m_name;
}; };
#endif #endif

@ -124,20 +124,20 @@ public:
result << it.key(); result << it.key();
return result; return result;
} }
virtual QWidget *create(const QString &key, QWidget *parent = 0, const char *name = 0); virtual TQWidget *create(const TQString &key, TQWidget *parent = 0, const char *name = 0);
virtual QIconSet iconSet(const QString &key) const virtual QIconSet iconSet(const TQString &key) const
{ {
QString path = locate("data", "kmymoney2/pics/" + m_widgets[key].iconSet); TQString path = locate("data", "kmymoney2/pics/" + m_widgets[key].iconSet);
return QIconSet(path); return QIconSet(path);
} }
virtual bool isContainer(const QString &key) const virtual bool isContainer(const TQString &key) const
{ {
return m_widgets[key].isContainer; return m_widgets[key].isContainer;
} }
EOT EOT
print OUT map { <<EOT } qw(group includeFile toolTip whatsThis); print OUT map { <<EOT } qw(group includeFile toolTip whatsThis);
virtual QString $_(const QString &key) const virtual TQString $_(const TQString &key) const
{ {
return m_widgets[key].$_; return m_widgets[key].$_;
} }
@ -148,14 +148,14 @@ print OUT <<EOT;
private: private:
struct WidgetInfo struct WidgetInfo
{ {
QString group; TQString group;
QString iconSet; TQString iconSet;
QString includeFile; TQString includeFile;
QString toolTip; TQString toolTip;
QString whatsThis; TQString whatsThis;
bool isContainer; bool isContainer;
}; };
typedef QMap<QString, WidgetInfo> WidgetInfos; typedef QMap<TQString, WidgetInfo> WidgetInfos;
WidgetInfos m_widgets; WidgetInfos m_widgets;
}; };
@ -179,7 +179,7 @@ ${name}::~$name()
{$destroy {$destroy
} }
QWidget *${name}::create(const QString &key, QWidget *parent, const char *name) TQWidget *${name}::create(const TQString &key, TQWidget *parent, const char *name)
{ {
EOT EOT

Loading…
Cancel
Save