summaryrefslogtreecommitdiffstats
path: root/superkaramba/src
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 10:00:17 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 10:00:17 -0600
commit955e20356d63ed405198c8143617a8a0ca8bfc02 (patch)
tree9a9ab22c86d212a5655014ad752e96b04c0c86a9 /superkaramba/src
parentbf280726d5d22f33d33e4f9e771220c725249407 (diff)
downloadtdeutils-955e20356d63ed405198c8143617a8a0ca8bfc02.tar.gz
tdeutils-955e20356d63ed405198c8143617a8a0ca8bfc02.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit bf280726d5d22f33d33e4f9e771220c725249407.
Diffstat (limited to 'superkaramba/src')
-rw-r--r--superkaramba/src/datesensor.cpp6
-rw-r--r--superkaramba/src/disksensor.cpp2
-rw-r--r--superkaramba/src/disksensor.h2
-rw-r--r--superkaramba/src/imagelabel_python.cpp2
-rw-r--r--superkaramba/src/input.cpp8
-rw-r--r--superkaramba/src/input_python.cpp2
-rw-r--r--superkaramba/src/karamba.cpp16
-rw-r--r--superkaramba/src/karamba_python.cpp6
-rw-r--r--superkaramba/src/karambaapp.cpp2
-rw-r--r--superkaramba/src/karambainterface.cpp4
-rw-r--r--superkaramba/src/karambasessionmanaged.cpp2
-rw-r--r--superkaramba/src/memsensor.cpp2
-rw-r--r--superkaramba/src/programsensor.h2
-rw-r--r--superkaramba/src/richtextlabel.cpp4
-rw-r--r--superkaramba/src/rsssensor.h2
-rw-r--r--superkaramba/src/sensorsensor.h2
-rw-r--r--superkaramba/src/sklineedit.cpp4
-rw-r--r--superkaramba/src/systemtray.cpp4
-rw-r--r--superkaramba/src/textfield.cpp24
-rw-r--r--superkaramba/src/textfield.h6
-rw-r--r--superkaramba/src/textfilesensor.h4
-rw-r--r--superkaramba/src/textlabel.cpp22
-rw-r--r--superkaramba/src/textlabel.h4
-rw-r--r--superkaramba/src/textlabel_python.cpp2
-rw-r--r--superkaramba/src/themefile.cpp6
-rw-r--r--superkaramba/src/themelocale.cpp2
-rw-r--r--superkaramba/src/themes_layout.ui10
-rw-r--r--superkaramba/src/themesdlg.cpp12
-rw-r--r--superkaramba/src/themesdlg.h2
-rw-r--r--superkaramba/src/themewidget.cpp10
-rw-r--r--superkaramba/src/themewidget_layout.ui8
-rw-r--r--superkaramba/src/uptimesensor.h2
-rw-r--r--superkaramba/src/widget_python.cpp2
-rw-r--r--superkaramba/src/xmmssensor.cpp4
-rw-r--r--superkaramba/src/xmmssensor.h2
35 files changed, 97 insertions, 97 deletions
diff --git a/superkaramba/src/datesensor.cpp b/superkaramba/src/datesensor.cpp
index ca5e6e6..56c9d31 100644
--- a/superkaramba/src/datesensor.cpp
+++ b/superkaramba/src/datesensor.cpp
@@ -20,7 +20,7 @@ DateSensor::~DateSensor()
void DateSensor::update()
{
- TQDateTime qdt = TQDateTime::currentDateTime();
+ TQDateTime qdt = TQDateTime::tqcurrentDateTime();
TQString format;
SensorParams *sp;
Meter *meter;
@@ -90,8 +90,8 @@ void DateSensor::toggleCalendar(TQMouseEvent *ev)
connect(cal, TQT_SIGNAL(destroyed()), TQT_SLOT(slotCalendarDeleted()));
TQPoint c = (TQPoint(ev->x(), ev->y()));
- int w = cal->sizeHint().width();
- int h = cal->sizeHint().height();
+ int w = cal->tqsizeHint().width();
+ int h = cal->tqsizeHint().height();
// make calendar fully visible
TQRect deskR = TQApplication::desktop()->screenGeometry(TQApplication::desktop()->screenNumber(c));
diff --git a/superkaramba/src/disksensor.cpp b/superkaramba/src/disksensor.cpp
index ea33c7c..b53c6e3 100644
--- a/superkaramba/src/disksensor.cpp
+++ b/superkaramba/src/disksensor.cpp
@@ -10,7 +10,7 @@
#include "disksensor.h"
#include <tqfile.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstring.h>
#include <tqregexp.h>
#include <kprocess.h>
diff --git a/superkaramba/src/disksensor.h b/superkaramba/src/disksensor.h
index f73500e..0fb2023 100644
--- a/superkaramba/src/disksensor.h
+++ b/superkaramba/src/disksensor.h
@@ -12,7 +12,7 @@
#include "sensor.h"
#include <tqmap.h>
#include <tqstring.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqregexp.h>
#include <tqstringlist.h>
#include <kprocess.h>
diff --git a/superkaramba/src/imagelabel_python.cpp b/superkaramba/src/imagelabel_python.cpp
index 7cf6d73..9379201 100644
--- a/superkaramba/src/imagelabel_python.cpp
+++ b/superkaramba/src/imagelabel_python.cpp
@@ -61,7 +61,7 @@ ImageLabel* createImageLabel(karamba *theme, long x, long y,
theme->meterList->append (tmp);
theme->imageList->append (tmp);
if(bg)
- theme->kroot->repaint(true);
+ theme->kroot->tqrepaint(true);
return tmp;
}
diff --git a/superkaramba/src/input.cpp b/superkaramba/src/input.cpp
index eae8780..63290cc 100644
--- a/superkaramba/src/input.cpp
+++ b/superkaramba/src/input.cpp
@@ -35,7 +35,7 @@ Input::~Input()
void Input::mUpdate(TQPainter*)
{
- edit->repaint();
+ edit->tqrepaint();
}
void Input::setValue(TQString text)
@@ -131,7 +131,7 @@ void Input::setFontColor(TQColor fontColor)
TQColor Input::getFontColor() const
{
- const TQColorGroup &color = edit->colorGroup();
+ const TQColorGroup &color = edit->tqcolorGroup();
return color.text();
}
@@ -144,7 +144,7 @@ void Input::setSelectionColor(TQColor selectionColor)
TQColor Input::getSelectionColor() const
{
- const TQColorGroup &color = edit->colorGroup();
+ const TQColorGroup &color = edit->tqcolorGroup();
return color.highlight();
}
@@ -157,7 +157,7 @@ void Input::setSelectedTextColor(TQColor selectedTextColor)
TQColor Input::getSelectedTextColor() const
{
- const TQColorGroup &color = edit->colorGroup();
+ const TQColorGroup &color = edit->tqcolorGroup();
return color.highlightedText();
}
diff --git a/superkaramba/src/input_python.cpp b/superkaramba/src/input_python.cpp
index fb451bd..82ed00f 100644
--- a/superkaramba/src/input_python.cpp
+++ b/superkaramba/src/input_python.cpp
@@ -346,7 +346,7 @@ PyObject* py_getInputFocus(PyObject *, PyObject *args)
// FocusWidget() returns the currently focused line edit,
// but unfortunately we need an 'Input' object here.
//
- TQWidget *obj = ((karamba*)widget)->focusWidget();
+ TQWidget *obj = ((karamba*)widget)->tqfocusWidget();
if(obj->isA(TQLINEEDIT_OBJECT_NAME_STRING)) // SKLineEdit is no TQ_Object, but TQLineEdit can only be here as a SKLineEdit
return Py_BuildValue((char*)"l", ((SKLineEdit*)obj)->getInput());
diff --git a/superkaramba/src/karamba.cpp b/superkaramba/src/karamba.cpp
index a7bdfba..90c58c0 100644
--- a/superkaramba/src/karamba.cpp
+++ b/superkaramba/src/karamba.cpp
@@ -85,7 +85,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
karambaApp->addKaramba(this, reloading);
if(prettyName.isEmpty())
- prettyName = TQString("%1 - %2").arg(m_theme.name()).arg(m_instance);
+ prettyName = TQString("%1 - %2").tqarg(m_theme.name()).tqarg(m_instance);
kdDebug() << "Starting theme: " << m_theme.name()
<< " pretty name: " << prettyName << endl;
@@ -111,7 +111,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
// Creates KConfig Object
TQString instanceString;
if(m_instance > 1)
- instanceString = TQString("-%1").arg(m_instance);
+ instanceString = TQString("-%1").tqarg(m_instance);
TQString cfg = TQDir::home().absPath() + "/.superkaramba/"
+ m_theme.id() + instanceString + ".rc";
kdDebug() << cfg << endl;
@@ -622,7 +622,7 @@ bool karamba::parseConfig()
TQColor("white")));
defaultTextField->setFont(lineParser.getString("FONT", "Helvetica"));
defaultTextField->setFontSize(lineParser.getInt("FONTSIZE", 12));
- defaultTextField->setAlignment(lineParser.getString("ALIGN",
+ defaultTextField->tqsetAlignment(lineParser.getString("ALIGN",
"LEFT"));
defaultTextField->setFixedPitch(lineParser.getBoolean("FIXEDPITCH",
false));
@@ -647,7 +647,7 @@ bool karamba::parseConfig()
tmpText->setFont(lineParser.getString("FONT", defTxt.getFont()));
tmpText->setFontSize(lineParser.getInt("FONTSIZE",
defTxt.getFontSize()));
- tmpText->setAlignment(lineParser.getString("ALIGN",
+ tmpText->tqsetAlignment(lineParser.getString("ALIGN",
defTxt.getAlignmentAsString()));
tmpText->setFixedPitch(lineParser.getInt("FIXEDPITCH",
defTxt.getFixedPitch()));
@@ -1619,13 +1619,13 @@ void karamba::updateBackground(KSharedPixmap* kpm)
{
systray->updateBackgroundPixmap(buffer2);
}
- repaint();
+ tqrepaint();
}
void karamba::currentDesktopChanged( int i )
{
//qDebug("karamba::currentDesktopChanged");
- kroot->repaint( true );
+ kroot->tqrepaint( true );
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->desktopChanged(this, i);
}
@@ -1633,7 +1633,7 @@ void karamba::currentDesktopChanged( int i )
void karamba::currentWallpaperChanged(int i )
{
//qDebug("karamba::currentWallpaperChanged");
- kroot->repaint( true );
+ kroot->tqrepaint( true );
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->wallpaperChanged(this, i);
}
@@ -1660,7 +1660,7 @@ void karamba::externalStep()
p.end();
bitBlt(&pm,0,0,&buffer,0,TQt::CopyROP);
- repaint();
+ tqrepaint();
}
}
diff --git a/superkaramba/src/karamba_python.cpp b/superkaramba/src/karamba_python.cpp
index 9f09f79..1538672 100644
--- a/superkaramba/src/karamba_python.cpp
+++ b/superkaramba/src/karamba_python.cpp
@@ -125,8 +125,8 @@ static PyMethodDef karamba_methods[] = {
{(char*)"getTextColor", py_getTextColor, METH_VARARGS, (char*)"Get a Text Sensor's Color"},
{(char*)"changeTextSize", py_setTextFontSize, METH_VARARGS, (char*)"Change a Text Sensor's Font Size"},
{(char*)"getTextFontSize", py_getTextFontSize, METH_VARARGS, (char*)"Get a Text Sensor's Font Size"},
- {(char*)"getTextAlign", py_getTextAlign, METH_VARARGS, (char*)"Get Text alignment."},
- {(char*)"setTextAlign", py_setTextAlign, METH_VARARGS, (char*)"Set Text alignment."},
+ {(char*)"getTextAlign", py_getTextAlign, METH_VARARGS, (char*)"Get Text tqalignment."},
+ {(char*)"setTextAlign", py_setTextAlign, METH_VARARGS, (char*)"Set Text tqalignment."},
{(char*)"setTextScroll", py_setTextScroll, METH_VARARGS, (char*)"Set Text scroll."},
// RichTextLabel - richtextlabel_python.cpp
@@ -214,7 +214,7 @@ static PyMethodDef karamba_methods[] = {
{(char*)"showSystray", py_show_systray, METH_VARARGS, (char*)"Show the Systray"},
{(char*)"moveSystray", py_move_systray, METH_VARARGS, (char*)"Move the Systray"},
{(char*)"getCurrentWindowCount", py_get_current_window_count, METH_VARARGS, (char*)"Get current Window count"},
- {(char*)"updateSystrayLayout", py_update_systray_layout, METH_VARARGS, (char*)"Update Systray layout"},
+ {(char*)"updateSystrayLayout", py_update_systray_layout, METH_VARARGS, (char*)"Update Systray tqlayout"},
// Misc - misc_python.cpp
{(char*)"getThemePath", py_get_theme_path, METH_VARARGS, (char*)"Get the file path of the theme"},
diff --git a/superkaramba/src/karambaapp.cpp b/superkaramba/src/karambaapp.cpp
index f3231b2..87f6e60 100644
--- a/superkaramba/src/karambaapp.cpp
+++ b/superkaramba/src/karambaapp.cpp
@@ -76,7 +76,7 @@ TQString KarambaApplication::getMainKaramba()
bool KarambaApplication::themeExists(TQString pretty_name)
{
- TQWidgetList *list = TQApplication::allWidgets();
+ TQWidgetList *list = TQApplication::tqallWidgets();
TQWidgetListIt it( *list ); // iterate over the widgets
TQWidget * w;
while ( (w=it.current()) != 0 ) // for each widget...
diff --git a/superkaramba/src/karambainterface.cpp b/superkaramba/src/karambainterface.cpp
index 5d33f68..659370a 100644
--- a/superkaramba/src/karambainterface.cpp
+++ b/superkaramba/src/karambainterface.cpp
@@ -24,7 +24,7 @@ KarambaIface::~KarambaIface()
karamba* KarambaIface::getKaramba(TQString name)
{
- TQWidgetList *list = TQApplication::allWidgets();
+ TQWidgetList *list = TQApplication::tqallWidgets();
TQWidgetListIt it(*list); // iterate over the widgets
TQWidget* w;
karamba* result = 0;
@@ -49,7 +49,7 @@ karamba* KarambaIface::getKaramba(TQString name)
ThemesDlg* KarambaIface::getThemeWnd()
{
- TQWidgetList *list = TQApplication::allWidgets();
+ TQWidgetList *list = TQApplication::tqallWidgets();
TQWidgetListIt it( *list ); // iterate over the widgets
TQWidget* w;
ThemesDlg* result = 0;
diff --git a/superkaramba/src/karambasessionmanaged.cpp b/superkaramba/src/karambasessionmanaged.cpp
index a6cd2c3..74ce4ed 100644
--- a/superkaramba/src/karambasessionmanaged.cpp
+++ b/superkaramba/src/karambasessionmanaged.cpp
@@ -34,7 +34,7 @@ bool KarambaSessionManaged::saveState(TQSessionManager&)
TQString openThemes="";
- TQWidgetList *list = TQApplication::allWidgets();
+ TQWidgetList *list = TQApplication::tqallWidgets();
TQWidgetListIt it( *list ); // iterate over the widgets
TQWidget * w;
while ( (w=it.current()) != 0 ) // for each widget...
diff --git a/superkaramba/src/memsensor.cpp b/superkaramba/src/memsensor.cpp
index bbf2edf..dda7983 100644
--- a/superkaramba/src/memsensor.cpp
+++ b/superkaramba/src/memsensor.cpp
@@ -10,7 +10,7 @@
#include "memsensor.h"
#include <tqfile.h>
#include <tqglobal.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstring.h>
#include <tqregexp.h>
diff --git a/superkaramba/src/programsensor.h b/superkaramba/src/programsensor.h
index 85c7e88..93e1c9e 100644
--- a/superkaramba/src/programsensor.h
+++ b/superkaramba/src/programsensor.h
@@ -15,7 +15,7 @@
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqvaluevector.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
class ProgramSensor : public Sensor
{
Q_OBJECT
diff --git a/superkaramba/src/richtextlabel.cpp b/superkaramba/src/richtextlabel.cpp
index 999fe0f..5044161 100644
--- a/superkaramba/src/richtextlabel.cpp
+++ b/superkaramba/src/richtextlabel.cpp
@@ -17,7 +17,7 @@ RichTextLabel::RichTextLabel(karamba* k) :
Meter(k, 0, 0, 100, 100),
text(0),
source(""),
- colorGrp(k->colorGroup()),
+ colorGrp(k->tqcolorGroup()),
underlineLinks(false)
{
originalSize = TQSize(0, 0);
@@ -27,7 +27,7 @@ RichTextLabel::RichTextLabel(karamba* k, int x, int y, int w, int h) :
Meter(k, x, y, w, h),
text(0),
source(""),
- colorGrp(k->colorGroup()),
+ colorGrp(k->tqcolorGroup()),
underlineLinks(false)
{
kdDebug() << k_funcinfo << x << ", " << y << ", " << w << ", " << h << endl;
diff --git a/superkaramba/src/rsssensor.h b/superkaramba/src/rsssensor.h
index 48f08e4..4e2322b 100644
--- a/superkaramba/src/rsssensor.h
+++ b/superkaramba/src/rsssensor.h
@@ -13,7 +13,7 @@
#include <sensor.h>
#include <tqstring.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
/**
*
diff --git a/superkaramba/src/sensorsensor.h b/superkaramba/src/sensorsensor.h
index 83a89ab..217cefb 100644
--- a/superkaramba/src/sensorsensor.h
+++ b/superkaramba/src/sensorsensor.h
@@ -3,7 +3,7 @@
#define SENSORSENSOR_H
#include <tqstring.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqmap.h>
#include <tqstringlist.h>
#include <tqregexp.h>
diff --git a/superkaramba/src/sklineedit.cpp b/superkaramba/src/sklineedit.cpp
index 57b9db0..40b6d3e 100644
--- a/superkaramba/src/sklineedit.cpp
+++ b/superkaramba/src/sklineedit.cpp
@@ -46,13 +46,13 @@ void SKLineEdit::drawContents(TQPainter *p)
void SKLineEdit::setFrameColor(TQColor c)
{
frameColor = c;
- repaint();
+ tqrepaint();
}
void SKLineEdit::setBackgroundColor(TQColor c)
{
TQLineEdit::setBackgroundColor(c);
- repaint();
+ tqrepaint();
}
TQColor SKLineEdit::getFrameColor() const
diff --git a/superkaramba/src/systemtray.cpp b/superkaramba/src/systemtray.cpp
index bf3cf81..3e0d4ba 100644
--- a/superkaramba/src/systemtray.cpp
+++ b/superkaramba/src/systemtray.cpp
@@ -29,7 +29,7 @@
#include <tqpopupmenu.h>
#include <tqdragobject.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqstringlist.h>
#include <tqpixmap.h>
@@ -190,7 +190,7 @@ void Systemtray::layoutSystray()
}
count++;
- emb->repaint();
+ emb->tqrepaint();
}
}
diff --git a/superkaramba/src/textfield.cpp b/superkaramba/src/textfield.cpp
index 4b1cee2..a3be722 100644
--- a/superkaramba/src/textfield.cpp
+++ b/superkaramba/src/textfield.cpp
@@ -18,7 +18,7 @@ TextField::TextField( )
setColor(TQColor(192, 192, 192));
setBGColor(TQColor(0, 0, 0));
setFont("Helvetica");
- setAlignment(TQt::AlignLeft);
+ tqsetAlignment(TQt::AlignLeft);
setFixedPitch(false);
setShadow(0);
}
@@ -35,7 +35,7 @@ TextField::TextField( const TextField& def )
setBGColor(def.getBGColor());
setFont( def.getFont() );
- setAlignment( def.getAlignment() );
+ tqsetAlignment( def.getAlignment() );
setFixedPitch( def.getFixedPitch() );
setShadow( def.getShadow() );
}
@@ -51,7 +51,7 @@ TextField& TextField::operator=(const TextField& rhs)
setBGColor(rhs.getBGColor());
setFont( rhs.getFont() );
- setAlignment( rhs.getAlignment() );
+ tqsetAlignment( rhs.getAlignment() );
setFixedPitch( rhs.getFixedPitch() );
setShadow( rhs.getShadow() );
@@ -102,32 +102,32 @@ int TextField::getFontSize() const
return font.pointSize();
}
-void TextField::setAlignment( const TQString &align )
+void TextField::tqsetAlignment( const TQString &align )
{
TQString a = align.upper();
if( a == "LEFT" || a.isEmpty() )
- alignment = TQt::AlignLeft;
+ tqalignment = TQt::AlignLeft;
if( a == "RIGHT" )
- alignment = TQt::AlignRight;
+ tqalignment = TQt::AlignRight;
if( a == "CENTER" )
- alignment = TQt::AlignHCenter;
+ tqalignment = TQt::AlignHCenter;
}
-void TextField::setAlignment( int af )
+void TextField::tqsetAlignment( int af )
{
- alignment = af;
+ tqalignment = af;
}
int TextField::getAlignment() const
{
- return alignment;
+ return tqalignment;
}
TQString TextField::getAlignmentAsString() const
{
- if( alignment == TQt::AlignHCenter )
+ if( tqalignment == TQt::AlignHCenter )
return "CENTER";
- else if( alignment == TQt::AlignRight )
+ else if( tqalignment == TQt::AlignRight )
return "RIGHT";
else
return "LEFT";
diff --git a/superkaramba/src/textfield.h b/superkaramba/src/textfield.h
index 13177b7..34f17c3 100644
--- a/superkaramba/src/textfield.h
+++ b/superkaramba/src/textfield.h
@@ -31,8 +31,8 @@ public:
void setColor(TQColor clr);
void setBGColor(TQColor clr);
void setFont( const TQString& );
- void setAlignment( int );
- void setAlignment( const TQString& );
+ void tqsetAlignment( int );
+ void tqsetAlignment( const TQString& );
void setFixedPitch( bool );
void setShadow( int );
@@ -47,7 +47,7 @@ public:
int getLineHeight() const;
protected:
- int alignment;
+ int tqalignment;
TQFont font;
TQColor color;
TQColor bgColor;
diff --git a/superkaramba/src/textfilesensor.h b/superkaramba/src/textfilesensor.h
index 3d35211..adf521e 100644
--- a/superkaramba/src/textfilesensor.h
+++ b/superkaramba/src/textfilesensor.h
@@ -25,9 +25,9 @@
#include <sensor.h>
#include <tqfile.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstring.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqvaluevector.h>
/**
*
diff --git a/superkaramba/src/textlabel.cpp b/superkaramba/src/textlabel.cpp
index 09b8f98..0cf8891 100644
--- a/superkaramba/src/textlabel.cpp
+++ b/superkaramba/src/textlabel.cpp
@@ -13,7 +13,7 @@
#include "textlabel.h"
TextLabel::TextLabel(karamba *k, int x,int y,int w,int h):
- Meter(k, x,y,w,h), alignment(TQt::AlignLeft), clip(0), bgColor(0, 0, 0),
+ Meter(k, x,y,w,h), tqalignment(TQt::AlignLeft), clip(0), bgColor(0, 0, 0),
lineHeight(0), shadow(0), scrollSpeed(0, 0), scrollPos(0, 0), scrollGap(0),
scrollPause(0), pauseCounter(0), scrollType(ScrollNone)
{
@@ -31,7 +31,7 @@ TextLabel::TextLabel(karamba *k, int x,int y,int w,int h):
}
TextLabel::TextLabel(karamba *k):
- Meter(k, 0, 0, 0, 0), alignment(TQt::AlignLeft), clip(0), bgColor(0, 0, 0),
+ Meter(k, 0, 0, 0, 0), tqalignment(TQt::AlignLeft), clip(0), bgColor(0, 0, 0),
lineHeight(0), shadow(0), scrollSpeed(0, 0), scrollPos(0, 0), scrollGap(0),
scrollPause(0), pauseCounter(0), scrollType(ScrollNone)
{
@@ -60,7 +60,7 @@ void TextLabel::setTextProps( TextField* t )
text = *t;
//lineHeight = t->getLineHeight();
shadow = t->getShadow();
- alignment = t->getAlignment();
+ tqalignment = t->getAlignment();
setFontSize(t->getFontSize());
setFont(t->getFont());
@@ -131,22 +131,22 @@ int TextLabel::getFontSize() const
return font.pixelSize();
}
-void TextLabel::setAlignment( TQString align )
+void TextLabel::tqsetAlignment( TQString align )
{
TQString a = align.upper();
if( a == "LEFT" || a.isEmpty() )
- alignment = TQt::AlignLeft;
+ tqalignment = TQt::AlignLeft;
if( a == "RIGHT" )
- alignment = TQt::AlignRight;
+ tqalignment = TQt::AlignRight;
if( a == "CENTER" )
- alignment = TQt::AlignHCenter;
+ tqalignment = TQt::AlignHCenter;
}
TQString TextLabel::getAlignment() const
{
- if( alignment == TQt::AlignHCenter )
+ if( tqalignment == TQt::AlignHCenter )
return "CENTER";
- else if( alignment == TQt::AlignRight )
+ else if( tqalignment == TQt::AlignRight )
return "RIGHT";
else
return "LEFT";
@@ -228,10 +228,10 @@ int TextLabel::drawText(TQPainter *p, int x, int y, int width, int height,
{
p->setPen(getBGColor());
p->drawText(x + shadow, y + shadow, width, height,
- alignment | clip | TQt::ExpandTabs, text);
+ tqalignment | clip | TQt::ExpandTabs, text);
}
p->setPen(getColor());
- p->drawText(x, y, width, height, alignment | clip | TQt::ExpandTabs, text);
+ p->drawText(x, y, width, height, tqalignment | clip | TQt::ExpandTabs, text);
return 0;
}
diff --git a/superkaramba/src/textlabel.h b/superkaramba/src/textlabel.h
index 72fcbc9..b29c44e 100644
--- a/superkaramba/src/textlabel.h
+++ b/superkaramba/src/textlabel.h
@@ -40,7 +40,7 @@ public:
void setFontSize( int );
void setBGColor(TQColor clr);
void setFont( TQString );
- void setAlignment( TQString );
+ void tqsetAlignment( TQString );
void setFixedPitch( bool );
void setShadow( int );
void mUpdate( TQPainter * );
@@ -62,7 +62,7 @@ public:
virtual bool click(TQMouseEvent*);
private:
- int alignment;
+ int tqalignment;
int clip;
TQStringList value;
TQFont font;
diff --git a/superkaramba/src/textlabel_python.cpp b/superkaramba/src/textlabel_python.cpp
index 3cf6e3e..e7d2498 100644
--- a/superkaramba/src/textlabel_python.cpp
+++ b/superkaramba/src/textlabel_python.cpp
@@ -206,7 +206,7 @@ PyObject* py_setTextAlign(PyObject *, PyObject *args)
return NULL;
if (!checkKarambaAndMeter(widget, textSensor, "TextLabel"))
return NULL;
- ((TextLabel*)textSensor)->setAlignment( text );
+ ((TextLabel*)textSensor)->tqsetAlignment( text );
return Py_BuildValue((char*)"l", 1);
}
diff --git a/superkaramba/src/themefile.cpp b/superkaramba/src/themefile.cpp
index acff61f..0e420d2 100644
--- a/superkaramba/src/themefile.cpp
+++ b/superkaramba/src/themefile.cpp
@@ -32,7 +32,7 @@
#include <kstandarddirs.h>
#include <klocale.h>
#include <kio/netaccess.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqfileinfo.h>
#include <tqdom.h>
#include <tqdir.h>
@@ -213,7 +213,7 @@ bool ThemeFile::set(const KURL &url)
i18n("You are about to install and run %1 SuperKaramba theme. Since "
"themes can contain executable code you should only install themes "
"from sources that you trust. Continue?"), i18n("Executable Code Warning"), i18n("Install")
- .arg(url.prettyURL()))
+ .tqarg(url.prettyURL()))
== KMessageBox::Cancel)
{
return false;
@@ -226,7 +226,7 @@ bool ThemeFile::set(const KURL &url)
{
if(KMessageBox::warningContinueCancel(TQT_TQWIDGET(kapp->activeWindow()),
i18n("%1 already exists. Do you want to overwrite it?")
- .arg(localFile.filePath()),i18n("File Exists"),i18n("Overwrite"))
+ .tqarg(localFile.filePath()),i18n("File Exists"),i18n("Overwrite"))
== KMessageBox::Cancel)
{
return false;
diff --git a/superkaramba/src/themelocale.cpp b/superkaramba/src/themelocale.cpp
index 37c72b7..bc388c2 100644
--- a/superkaramba/src/themelocale.cpp
+++ b/superkaramba/src/themelocale.cpp
@@ -157,7 +157,7 @@ void ThemeLocale::setLanguage(const TQStringList &languages)
++it)
{
TQString file =
- TQString("locale/%1/LC_MESSAGES/%2.mo").arg(*it).arg(m_theme->mo());
+ TQString("locale/%1/LC_MESSAGES/%2.mo").tqarg(*it).tqarg(m_theme->mo());
if(m_theme->fileExists(file))
{
diff --git a/superkaramba/src/themes_layout.ui b/superkaramba/src/themes_layout.ui
index 8b76e0b..b3ee3a1 100644
--- a/superkaramba/src/themes_layout.ui
+++ b/superkaramba/src/themes_layout.ui
@@ -12,7 +12,7 @@
<height>517</height>
</rect>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -27,7 +27,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
@@ -111,7 +111,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -122,7 +122,7 @@
<property name="name">
<cstring>buttonAddToDesktop</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -139,7 +139,7 @@
<property name="name">
<cstring>buttonClose</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
diff --git a/superkaramba/src/themesdlg.cpp b/superkaramba/src/themesdlg.cpp
index f483a04..f7749cc 100644
--- a/superkaramba/src/themesdlg.cpp
+++ b/superkaramba/src/themesdlg.cpp
@@ -220,9 +220,9 @@ void ThemesDlg::getNewStuff()
KConfig* config = KGlobal::config();
config->setGroup("KNewStuff");
config->writePathEntry("ProvidersUrl",
- TQString::fromLatin1("http://download.kde.org/khotnewstuff/karamba-providers.xml"));
+ TQString::tqfromLatin1("http://download.kde.org/khotnewstuff/karamba-providers.xml"));
config->sync();
- m_newStuffStatus = config->entryMap("KNewStuffStatus").keys();
+ m_newStufftqStatus = config->entryMap("KNewStuffStatus").keys();
//This check is b/c KNewStuff will download, throw an error,
//and still have the entry in the config that it was successful
configSanityCheck();
@@ -304,8 +304,8 @@ void ThemesDlg::writeNewStuffConfig(const TQString &file)
KConfig* config = KGlobal::config();
TQStringList keys = config->entryMap("KNewStuffStatus").keys();
- for(TQStringList::Iterator it = m_newStuffStatus.begin();
- it != m_newStuffStatus.end(); ++it)
+ for(TQStringList::Iterator it = m_newStufftqStatus.begin();
+ it != m_newStufftqStatus.end(); ++it)
{
keys.remove(*it);
}
@@ -477,7 +477,7 @@ void ThemesDlg::uninstall()
tableThemes->removeItem( twPtr );
}
#ifdef HAVE_KNEWSTUFF
- // Remove theme from KNewStuffStatus
+ // Remove theme from KNewStufftqStatus
KConfig* config = KGlobal::config();
config->setGroup("KNewStuffNames");
TQString name = config->readEntry(tempPath);
@@ -507,7 +507,7 @@ void ThemesDlg::uninstall()
}
tableThemes->removeItem(w);
#ifdef HAVE_KNEWSTUFF
- // Remove theme from KNewStuffStatus
+ // Remove theme from KNewStufftqStatus
KConfig* config = KGlobal::config();
config->setGroup("KNewStuffNames");
TQString name = config->readEntry(theme.path());
diff --git a/superkaramba/src/themesdlg.h b/superkaramba/src/themesdlg.h
index b75c820..bf4fab5 100644
--- a/superkaramba/src/themesdlg.h
+++ b/superkaramba/src/themesdlg.h
@@ -74,7 +74,7 @@ class ThemesDlg : public ThemesLayout
#ifdef HAVE_KNEWSTUFF
private:
SKNewStuff *mNewStuff;
- TQStringList m_newStuffStatus;
+ TQStringList m_newStufftqStatus;
#endif
};
diff --git a/superkaramba/src/themewidget.cpp b/superkaramba/src/themewidget.cpp
index 75a9a0d..3addd2a 100644
--- a/superkaramba/src/themewidget.cpp
+++ b/superkaramba/src/themewidget.cpp
@@ -23,7 +23,7 @@
#include <kdebug.h>
#include <klocale.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
ThemeWidget::ThemeWidget(TQWidget *parent, const char *name)
: ThemeWidgetLayout(parent, name), m_themeFile(0)
@@ -75,7 +75,7 @@ void ThemeWidget::updateRunning()
{
int i = instances();
if(i > 0)
- running->setText(i18n("<p align=\"center\">%1 running</p>").arg(i));
+ running->setText(i18n("<p align=\"center\">%1 running</p>").tqarg(i));
else
running->setText("");
}
@@ -101,12 +101,12 @@ void ThemeWidget::showButton(bool show)
void ThemeWidget::setDescriptionMaxHeight()
{
- if(layoutText->geometry().height() <= 0)
+ if(layoutText->tqgeometry().height() <= 0)
return;
- int height = layoutText->geometry().height() - themeName->height() -
+ int height = layoutText->tqgeometry().height() - themeName->height() -
layoutText->spacing();
if(buttonGo->isVisible())
- height -= layoutButton->geometry().height() + layoutText->spacing();
+ height -= layoutButton->tqgeometry().height() + layoutText->spacing();
description->setMaximumHeight(height);
}
diff --git a/superkaramba/src/themewidget_layout.ui b/superkaramba/src/themewidget_layout.ui
index 6e07e26..5ab1b70 100644
--- a/superkaramba/src/themewidget_layout.ui
+++ b/superkaramba/src/themewidget_layout.ui
@@ -35,7 +35,7 @@
<property name="name">
<cstring>icon</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>76</width>
<height>0</height>
@@ -47,7 +47,7 @@
<property name="pixmap">
<pixmap>image0</pixmap>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
</widget>
@@ -121,7 +121,7 @@
<property name="text">
<string>Description</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@@ -143,7 +143,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>40</width>
<height>20</height>
diff --git a/superkaramba/src/uptimesensor.h b/superkaramba/src/uptimesensor.h
index 7cef09b..5459956 100644
--- a/superkaramba/src/uptimesensor.h
+++ b/superkaramba/src/uptimesensor.h
@@ -12,7 +12,7 @@
#include "sensor.h"
#include <tqfile.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstring.h>
#include <tqregexp.h>
#include <tqdatetime.h>
diff --git a/superkaramba/src/widget_python.cpp b/superkaramba/src/widget_python.cpp
index 0948e39..564b4b4 100644
--- a/superkaramba/src/widget_python.cpp
+++ b/superkaramba/src/widget_python.cpp
@@ -101,7 +101,7 @@ PyObject* py_create_widget_mask(PyObject *, PyObject *args)
long redrawWidgetBackground(long widget)
{
karamba* currTheme = (karamba*)widget;
- currTheme->kroot->repaint(true);
+ currTheme->kroot->tqrepaint(true);
return 1;
}
diff --git a/superkaramba/src/xmmssensor.cpp b/superkaramba/src/xmmssensor.cpp
index 268700b..d78d119 100644
--- a/superkaramba/src/xmmssensor.cpp
+++ b/superkaramba/src/xmmssensor.cpp
@@ -164,9 +164,9 @@ void XMMSSensor::update()
{
isPlaying = xmms->isPlaying(0);
pos = xmms->getPlaylistPos(0);
- qDebug("unicode start");
+ qDebug("tqunicode start");
title = codec->toUnicode( TQCString( xmms->getPlaylistTitle( 0, pos ) ) );
- qDebug("unicode end");
+ qDebug("tqunicode end");
if( title.isEmpty() )
title = "XMMS";
diff --git a/superkaramba/src/xmmssensor.h b/superkaramba/src/xmmssensor.h
index 4612d5f..bd254fb 100644
--- a/superkaramba/src/xmmssensor.h
+++ b/superkaramba/src/xmmssensor.h
@@ -16,7 +16,7 @@
#include <tqdatetime.h>
#include <tqregexp.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include "sensor.h"