summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/KoEditPath.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kofficeui/KoEditPath.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kofficeui/KoEditPath.cpp')
-rw-r--r--lib/kofficeui/KoEditPath.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/kofficeui/KoEditPath.cpp b/lib/kofficeui/KoEditPath.cpp
index 8f7aa19e..f84431c7 100644
--- a/lib/kofficeui/KoEditPath.cpp
+++ b/lib/kofficeui/KoEditPath.cpp
@@ -19,26 +19,26 @@
#include <kdeversion.h>
#include <klocale.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qlistbox.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqlistbox.h>
#include "KoEditPath.h"
#include <keditlistbox.h>
#include <kfiledialog.h>
#include <kurlrequester.h>
-#include <qhbox.h>
+#include <tqhbox.h>
#include <klineedit.h>
-#include <qvbox.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
+#include <tqvbox.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
-KoEditPathDia::KoEditPathDia( const QString & _path, QWidget *parent, const char *name )
- : KDialogBase( parent, name , true, "", Ok|Cancel, Ok, true )
+KoEditPathDia::KoEditPathDia( const TQString & _path, TQWidget *tqparent, const char *name )
+ : KDialogBase( tqparent, name , true, "", Ok|Cancel, Ok, true )
{
setCaption( i18n("Edit Path") );
- QWidget *page = new QWidget( this );
+ TQWidget *page = new TQWidget( this );
setMainWidget(page);
- QGridLayout * grid = new QGridLayout(page, 5, 2, KDialog::marginHint(), KDialog::spacingHint());
+ TQGridLayout * grid = new TQGridLayout(page, 5, 2, KDialog::marginHint(), KDialog::spacingHint());
urlReq = new KURLRequester();
urlReq->fileDialog()->setMode(KFile::Directory | KFile::LocalOnly);
@@ -49,14 +49,14 @@ KoEditPathDia::KoEditPathDia( const QString & _path, QWidget *parent, const char
tmp,page, "list_editor" , false, KEditListBox::Add|KEditListBox::Remove );
grid->addMultiCellWidget(m_listpath, 0, 4, 0, 0);
- m_listpath->listBox()->insertStringList(QStringList::split(QString(";"), _path));
+ m_listpath->listBox()->insertStringList(TQStringList::split(TQString(";"), _path));
setFocus();
resize( 500, 300);
}
-QString KoEditPathDia::newPath()const
+TQString KoEditPathDia::newPath()const
{
- QString tmp;
+ TQString tmp;
for (int i = 0; i <(int)m_listpath->listBox()->count(); i++)
{
if ( i!=0)
@@ -67,27 +67,27 @@ QString KoEditPathDia::newPath()const
}
-KoChangePathDia::KoChangePathDia( const QString & _path, QWidget *parent, const char *name )
- : KDialogBase( parent, name , true, "", Ok|Cancel, Ok, true )
+KoChangePathDia::KoChangePathDia( const TQString & _path, TQWidget *tqparent, const char *name )
+ : KDialogBase( tqparent, name , true, "", Ok|Cancel, Ok, true )
{
setCaption( i18n("Edit Path") );
- QVBox *page =makeVBoxMainWidget();
- new QLabel( i18n("Location:"), page);
+ TQVBox *page =makeVBoxMainWidget();
+ new TQLabel( i18n("Location:"), page);
m_urlReq = new KURLRequester(page);
- m_urlReq->setMinimumWidth( m_urlReq->sizeHint().width() * 3 );
+ m_urlReq->setMinimumWidth( m_urlReq->tqsizeHint().width() * 3 );
m_urlReq->lineEdit()->setText( _path );
m_urlReq->fileDialog()->setMode(KFile::Directory | KFile::LocalOnly);
- m_defaultPath = new QCheckBox( i18n("Default path"), page );
- connect( m_defaultPath, SIGNAL(toggled ( bool )), this, SLOT( slotChangeDefaultValue( bool )));
+ m_defaultPath = new TQCheckBox( i18n("Default path"), page );
+ connect( m_defaultPath, TQT_SIGNAL(toggled ( bool )), this, TQT_SLOT( slotChangeDefaultValue( bool )));
slotChangeDefaultValue( _path.isEmpty() );
m_defaultPath->setChecked( _path.isEmpty() );
}
-QString KoChangePathDia::newPath() const
+TQString KoChangePathDia::newPath() const
{
- return m_defaultPath->isChecked() ? QString::null : m_urlReq->lineEdit()->text();
+ return m_defaultPath->isChecked() ? TQString() : m_urlReq->lineEdit()->text();
}
void KoChangePathDia::slotChangeDefaultValue( bool _b)