From b9e542d0c805e9adee3a67e44532d5321032e21e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:51:01 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- parts/classview/digraphview.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'parts/classview/digraphview.cpp') diff --git a/parts/classview/digraphview.cpp b/parts/classview/digraphview.cpp index 35680be9..6c9eeb88 100644 --- a/parts/classview/digraphview.cpp +++ b/parts/classview/digraphview.cpp @@ -223,7 +223,7 @@ void DigraphView::parseDotResults(const TQStringList &list) void DigraphView::process( const TQString& file, const TQString& ext ) { - TQString cmd = KGlobal::dirs()->findExe("dot"); + TQString cmd = TDEGlobal::dirs()->findExe("dot"); if (cmd.isEmpty()) { KMessageBox::sorry(0, i18n("You do not have 'dot' installed.\nIt can be downloaded from www.graphviz.org.")); return; @@ -242,7 +242,7 @@ void DigraphView::process( const TQString& file, const TQString& ext ) is << "}" << endl; ifile.close(); - KProcess proc; + TDEProcess proc; if( !file.isEmpty() && !ext.isEmpty() ) { proc << cmd << TQString("-T")+ext << ifile.name() << "-o" << file; @@ -251,7 +251,7 @@ void DigraphView::process( const TQString& file, const TQString& ext ) { proc << cmd << "-Tplain" << ifile.name() << "-o" << ofile.name(); } - proc.start(KProcess::Block); + proc.start(TDEProcess::Block); if( !file.isEmpty() && !ext.isEmpty() ) { @@ -276,7 +276,7 @@ void DigraphView::drawContents(TQPainter* p, int clipx, int clipy, int clipw, in TQRect clipRect(clipx, clipy, clipw, cliph); p->eraseRect(clipRect); - p->setFont(KGlobalSettings::generalFont()); + p->setFont(TDEGlobalSettings::generalFont()); TQPtrListIterator it1(nodes); for (; it1.current(); ++it1) { TQRect r((*it1)->x-(*it1)->w/2, (*it1)->y-(*it1)->h/2, (*it1)->w, (*it1)->h); @@ -343,7 +343,7 @@ TQSize DigraphView::sizeHint() const if (width == -1) return TQSize(100, 100); // arbitrary - TQSize dsize = KGlobalSettings::desktopGeometry(viewport()).size(); + TQSize dsize = TDEGlobalSettings::desktopGeometry(viewport()).size(); kdDebug(9003) << "sizehint for inheritance diagram" << dsize << " " << width << " " << height << endl; return TQSize(width, height).boundedTo(TQSize(dsize.width()*2/3, dsize.height()*2/3)); } -- cgit v1.2.1