summaryrefslogtreecommitdiffstats
path: root/kghostview/kgvconfigdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kghostview/kgvconfigdialog.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kghostview/kgvconfigdialog.cpp')
-rw-r--r--kghostview/kgvconfigdialog.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kghostview/kgvconfigdialog.cpp b/kghostview/kgvconfigdialog.cpp
index a9952008..ed55df1e 100644
--- a/kghostview/kgvconfigdialog.cpp
+++ b/kghostview/kgvconfigdialog.cpp
@@ -19,7 +19,7 @@
// Add header files alphabetically
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kconfig.h>
#include <kdebug.h>
@@ -43,14 +43,14 @@
namespace {
- QString getGSVersion( QString fullPathToExec )
+ TQString getGSVersion( TQString fullPathToExec )
{
- QString res;
- QString chkVersion = KProcess::quote(fullPathToExec) + " --version";
- FILE* p = popen( QFile::encodeName(chkVersion), "r" );
+ TQString res;
+ TQString chkVersion = KProcess::quote(fullPathToExec) + " --version";
+ FILE* p = popen( TQFile::encodeName(chkVersion), "r" );
if( p ) {
// FIXME: a badly configured interpreter can hang us
- QFile qp;
+ TQFile qp;
qp.open( IO_ReadOnly, p );
qp.readLine( res, 80 );
qp.close();
@@ -96,18 +96,18 @@ namespace {
*
*/
- QString recommendSetSafe( QString version )
+ TQString recommendSetSafe( TQString version )
{
- if ( version < QString::number( 6.53 ) ) return QString::number( 6.53 );
- if ( version[ 0 ] == '7' && version < QString::number( 7.04 ) ) return QString::number( 7.05 );
- return QString::null;
+ if ( version < TQString::number( 6.53 ) ) return TQString::number( 6.53 );
+ if ( version[ 0 ] == '7' && version < TQString::number( 7.04 ) ) return TQString::number( 7.05 );
+ return TQString::null;
}
// This function should contain all the gs version specific workarounds.
void redoGSDetection()
{
kdDebug(4500) << "kgvconfigdialog.cpp::{unnamed}::redoGSDetection()" << endl;
- QString version = getGSVersion( Configuration::interpreter() );
- QString recommended = recommendSetSafe( version );
+ TQString version = getGSVersion( Configuration::interpreter() );
+ TQString recommended = recommendSetSafe( version );
if ( !recommended.isNull() ) {
KMessageBox::sorry( 0,
i18n( "Your version of gs (version %1) is too old, since it has security issues "
@@ -117,11 +117,11 @@ namespace {
.arg( version )
.arg( recommended ) );
}
- if ( version < QString::number( 7.00 ) )
+ if ( version < TQString::number( 7.00 ) )
{
- QStringList arguments = QStringList::split( ' ', Configuration::antialiasingArguments() );
- arguments.remove( QString::fromLatin1( "-dMaxBitmap=10000000" ) );
- QString antiAliasArgs = arguments.join( " " );
+ TQStringList arguments = TQStringList::split( ' ', Configuration::antialiasingArguments() );
+ arguments.remove( TQString::fromLatin1( "-dMaxBitmap=10000000" ) );
+ TQString antiAliasArgs = arguments.join( " " );
Configuration::setAntialiasingArguments( antiAliasArgs );
}
@@ -140,13 +140,13 @@ void ConfigDialog::showSettings( KGVPart* main ) {
KConfigDialog* dialog = new KConfigDialog( 0, name,
Configuration::self(), KDialogBase::IconList );
dialog->addPage( new GeneralSettingsWidget( 0, "general-settings" ),
- i18n( "General" ), QString::fromLatin1( "kghostview" ) );
+ i18n( "General" ), TQString::fromLatin1( "kghostview" ) );
GSSettingsWidget *gssw = new GSSettingsWidget( 0, "gs-settings" );
- dialog->addPage( gssw, i18n( "Ghostscript\nConfiguration" ), QString::fromLatin1( "pdf" ) );
+ dialog->addPage( gssw, i18n( "Ghostscript\nConfiguration" ), TQString::fromLatin1( "pdf" ) );
gssw->setDetectedVersion(Configuration::version());
- QObject::connect( dialog, SIGNAL( settingsChanged() ), main, SLOT( slotConfigurationChanged() ) );
+ TQObject::connect( dialog, TQT_SIGNAL( settingsChanged() ), main, TQT_SLOT( slotConfigurationChanged() ) );
dialog->show();
}