summaryrefslogtreecommitdiffstats
path: root/tdeprint/kprintpreview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeprint/kprintpreview.cpp')
-rw-r--r--tdeprint/kprintpreview.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tdeprint/kprintpreview.cpp b/tdeprint/kprintpreview.cpp
index e7d8f5728..0684c3428 100644
--- a/tdeprint/kprintpreview.cpp
+++ b/tdeprint/kprintpreview.cpp
@@ -154,11 +154,11 @@ KPrintPreview::KPrintPreview(TQWidget *parent, bool previewOnly)
// create main view and actions
setMainWidget(d->mainwidget_);
if (previewOnly)
- KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(reject()), d->actions_, "close_print");
+ KStdAction::close(this, TQT_SLOT(reject()), d->actions_, "close_print");
else
{
- new TDEAction(i18n("Print"), "document-print", TQt::Key_Return, TQT_TQOBJECT(this), TQT_SLOT(accept()), d->actions_, "continue_print");
- new TDEAction(i18n("Cancel"), "process-stop", TQt::Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(reject()), d->actions_, "stop_print");
+ new TDEAction(i18n("Print"), "document-print", TQt::Key_Return, this, TQT_SLOT(accept()), d->actions_, "continue_print");
+ new TDEAction(i18n("Cancel"), "process-stop", TQt::Key_Escape, this, TQT_SLOT(reject()), d->actions_, "stop_print");
}
}
@@ -171,7 +171,7 @@ KPrintPreview::~KPrintPreview()
void KPrintPreview::initView(KLibFactory *factory)
{
// load the component
- d->gvpart_ = (KParts::ReadOnlyPart*)factory->create(TQT_TQOBJECT(d->mainwidget_), "gvpart", "KParts::ReadOnlyPart");
+ d->gvpart_ = (KParts::ReadOnlyPart*)factory->create(d->mainwidget_, "gvpart", "KParts::ReadOnlyPart");
// populate the toolbar
if (d->previewonly_)
@@ -248,7 +248,7 @@ bool KPrintPreview::preview(const TQString& file, bool previewOnly, WId parentId
conf->setGroup("General");
KLibFactory *factory(0);
bool externalPreview = conf->readBoolEntry("ExternalPreview", false);
- TQWidget *parentW = TQT_TQWIDGET(TQWidget::find(parentId));
+ TQWidget *parentW = TQWidget::find(parentId);
TQString exe;
if (!externalPreview && isPS && (factory = componentFactory()) != 0)
{