diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-21 11:50:23 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-26 18:42:01 +0900 |
commit | 2a3a62bb995b73481a8a64658266adf22e523f7b (patch) | |
tree | 17e63d11e590bd93137dee185ff1342873f4ddea /tdeprint/kprintpreview.cpp | |
parent | af8caeadf368a17dabd9f53d4c661213c840eebd (diff) | |
download | tdelibs-2a3a62bb995b73481a8a64658266adf22e523f7b.tar.gz tdelibs-2a3a62bb995b73481a8a64658266adf22e523f7b.zip |
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d5688771d8a6837975be512ee37f61bad7dbd345)
Diffstat (limited to 'tdeprint/kprintpreview.cpp')
-rw-r--r-- | tdeprint/kprintpreview.cpp | 10 |
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) { |