summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/KoEditPath.cpp
diff options
context:
space:
mode:
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 8f7aa19e0..f84431c72 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)