summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/factories/stdwidgetfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/formeditor/factories/stdwidgetfactory.cpp')
-rw-r--r--kexi/formeditor/factories/stdwidgetfactory.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kexi/formeditor/factories/stdwidgetfactory.cpp b/kexi/formeditor/factories/stdwidgetfactory.cpp
index a74097a03..101073337 100644
--- a/kexi/formeditor/factories/stdwidgetfactory.cpp
+++ b/kexi/formeditor/factories/stdwidgetfactory.cpp
@@ -72,32 +72,32 @@ KexiPictureLabel::setProperty(const char *name, const TQVariant &value)
return TQLabel::setProperty(name, value);
}
-Line::Line(Qt::Orientation orient, TQWidget *parent, const char *name)
+Line::Line(TQt::Orientation orient, TQWidget *parent, const char *name)
: TQFrame(parent, name)
{
setFrameShadow(Sunken);
- if(orient ==Qt::Horizontal)
+ if(orient ==TQt::Horizontal)
setFrameShape(HLine);
else
setFrameShape(VLine);
}
void
-Line::setOrientation(Qt::Orientation orient)
+Line::setOrientation(TQt::Orientation orient)
{
- if(orient ==Qt::Horizontal)
+ if(orient ==TQt::Horizontal)
setFrameShape(HLine);
else
setFrameShape(VLine);
}
-Qt::Orientation
+TQt::Orientation
Line::orientation() const
{
if(frameShape() == HLine)
- return Qt::Horizontal;
+ return TQt::Horizontal;
else
- return Qt::Vertical;
+ return TQt::Vertical;
}
// The factory itself
@@ -425,7 +425,7 @@ StdWidgetFactory::createWidget(const TQCString &c, TQWidget *p, const char *n,
((TDEListView*)w)->setRootIsDecorated(true);
}
else if(c == "TQSlider")
- w = new TQSlider(Qt::Horizontal, p, n);
+ w = new TQSlider(TQt::Horizontal, p, n);
else if(c == "KProgress")
w = new KProgress(p, n);
@@ -440,13 +440,13 @@ StdWidgetFactory::createWidget(const TQCString &c, TQWidget *p, const char *n,
w = new KDateTimeWidget(TQDateTime::currentDateTime(), p, n);
else if(c == "Line")
- w = new Line(options & WidgetFactory::VerticalOrientation ? Qt::Vertical : Qt::Horizontal, p, n);
+ w = new Line(options & WidgetFactory::VerticalOrientation ? TQt::Vertical : TQt::Horizontal, p, n);
else if(c == "Spring") {
w = new Spring(p, n);
if (0 == (options & WidgetFactory::AnyOrientation))
static_cast<Spring*>(w)->setOrientation(
- (options & WidgetFactory::VerticalOrientation) ? Qt::Vertical : Qt::Horizontal);
+ (options & WidgetFactory::VerticalOrientation) ? TQt::Vertical : TQt::Horizontal);
}
if(w)