diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
commit | 10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch) | |
tree | 4bc444c00a79e88105f2cfce5b6209994c413ca0 /kdeprint/kprintpreview.cpp | |
parent | 307136d8eef0ba133b78ceee8e901138d4c996a1 (diff) | |
download | tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip |
Revert automated changes
Sorry guys, they are just not ready for prime time
Work will continue as always
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/kprintpreview.cpp')
-rw-r--r-- | kdeprint/kprintpreview.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kdeprint/kprintpreview.cpp b/kdeprint/kprintpreview.cpp index 034285543..5ad8a428f 100644 --- a/kdeprint/kprintpreview.cpp +++ b/kdeprint/kprintpreview.cpp @@ -111,7 +111,7 @@ static KLibFactory* componentFactory() factory = KLibLoader::self()->factory("libkghostviewpart"); if( factory ) return factory; - KTrader::OfferList offers = KTrader::self()->query(TQString::tqfromLatin1("application/postscript"), TQString::tqfromLatin1("KParts/ReadOnlyPart"), TQString::null, TQString::null); + KTrader::OfferList offers = KTrader::self()->query(TQString::fromLatin1("application/postscript"), TQString::fromLatin1("KParts/ReadOnlyPart"), TQString::null, TQString::null); for (KTrader::OfferList::ConstIterator it = offers.begin(); it != offers.end(); ++it) { KService::Ptr service = *it; @@ -217,7 +217,7 @@ void KPrintPreview::initView(KLibFactory *factory) d->toolbar_->setMovingEnabled(false); //d->adjustSize(); - // construct the tqlayout + // construct the layout QVBoxLayout *l0 = new TQVBoxLayout(d->mainwidget_, 0, 0); l0->addWidget(d->toolbar_, AlignTop); if (d->gvpart_) @@ -239,7 +239,7 @@ bool KPrintPreview::isValid() const bool KPrintPreview::preview(const TQString& file, bool previewOnly, WId parentId) { - KMimeType::Ptr mime = KMimeType::tqfindByPath( file ); + KMimeType::Ptr mime = KMimeType::findByPath( file ); bool isPS = ( mime->name() == "application/postscript" ); if ( !isPS ) kdDebug( 500 ) << "Previewing a non PostScript file, built-in preview disabled" << endl; @@ -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); - QWidget *parentW = TQWidget::tqfind(parentId); + QWidget *parentW = TQWidget::find(parentId); QString exe; if (!externalPreview && isPS && (factory = componentFactory()) != 0) { @@ -304,7 +304,7 @@ bool KPrintPreview::preview(const TQString& file, bool previewOnly, WId parentId "viewer (KGhostView) nor any other external PostScript " "viewer could be found."); else - msg = i18n( "Preview failed: KDE could not tqfind any application " + msg = i18n( "Preview failed: KDE could not find any application " "to preview files of type %1." ).arg( mime->name() ); return continuePrint(msg, parentW, previewOnly); |