summaryrefslogtreecommitdiffstats
path: root/lib/widgets/ksavealldialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/ksavealldialog.cpp')
-rw-r--r--lib/widgets/ksavealldialog.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/lib/widgets/ksavealldialog.cpp b/lib/widgets/ksavealldialog.cpp
index 81d9ed38..8ddb5c89 100644
--- a/lib/widgets/ksavealldialog.cpp
+++ b/lib/widgets/ksavealldialog.cpp
@@ -17,9 +17,9 @@
Boston, MA 02110-1301, USA.
*/
-#include <qvbox.h>
-#include <qlabel.h>
-#include <qheader.h>
+#include <tqvbox.h>
+#include <tqlabel.h>
+#include <tqheader.h>
#include <klocale.h>
#include <kpushbutton.h>
@@ -35,8 +35,8 @@ namespace
class CheckURL : public QCheckListItem
{
public:
- CheckURL( QListView * lv, KURL const & url )
- : QCheckListItem( lv, url.path(), QCheckListItem::CheckBox),
+ CheckURL( TQListView * lv, KURL const & url )
+ : TQCheckListItem( lv, url.path(), TQCheckListItem::CheckBox),
_url( url )
{}
@@ -49,20 +49,20 @@ private:
}
-KSaveSelectDialog::KSaveSelectDialog( KURL::List const & filelist, KURL::List const & ignorelist, QWidget * parent ) :
+KSaveSelectDialog::KSaveSelectDialog( KURL::List const & filelist, KURL::List const & ignorelist, TQWidget * parent ) :
KDialogBase( parent, "SaveAllDialog", true, i18n("Save Modified Files?"),
Ok | User1 | Close )
{
- QVBox *top = makeVBoxMainWidget();
+ TQVBox *top = makeVBoxMainWidget();
- (void)new QLabel( i18n("The following files have been modified. Save them?"), top );
+ (void)new TQLabel( i18n("The following files have been modified. Save them?"), top );
_listview = new KListView( top );
_listview->addColumn( "" );
_listview->header()->hide();
- _listview->setResizeMode( QListView::LastColumn );
+ _listview->setResizeMode( TQListView::LastColumn );
- setButtonOK( KGuiItem(i18n("Save &Selected"), QString::null, i18n("Saves all selected files")) );
+ setButtonOK( KGuiItem(i18n("Save &Selected"), TQString::null, i18n("Saves all selected files")) );
setButtonText( User1, i18n("Save &None") );
setButtonText( Close, KStdGuiItem::cancel().text() );
setButtonTip( User1, i18n("Lose all modifications") );
@@ -73,15 +73,15 @@ KSaveSelectDialog::KSaveSelectDialog( KURL::List const & filelist, KURL::List co
{
if ( !ignorelist.contains( *it ) )
{
- QCheckListItem * x = new CheckURL( _listview, *it );
+ TQCheckListItem * x = new CheckURL( _listview, *it );
x->setOn( true );
}
++it;
}
- connect( this, SIGNAL(closeClicked()), this, SLOT(cancel()) );
- connect( this, SIGNAL(okClicked()), this, SLOT(save()) );
- connect( this, SIGNAL(user1Clicked()), this, SLOT(saveNone()) );
+ connect( this, TQT_SIGNAL(closeClicked()), this, TQT_SLOT(cancel()) );
+ connect( this, TQT_SIGNAL(okClicked()), this, TQT_SLOT(save()) );
+ connect( this, TQT_SIGNAL(user1Clicked()), this, TQT_SLOT(saveNone()) );
}
KSaveSelectDialog::~KSaveSelectDialog() {}
@@ -96,17 +96,17 @@ void KSaveSelectDialog::saveNone( )
item = static_cast<CheckURL*>( item->nextSibling() );
}
- QDialog::accept();
+ TQDialog::accept();
}
void KSaveSelectDialog::save( )
{
- QDialog::accept();
+ TQDialog::accept();
}
void KSaveSelectDialog::cancel( )
{
- QDialog::reject();
+ TQDialog::reject();
}
KURL::List KSaveSelectDialog::filesToSave( )
@@ -140,28 +140,28 @@ KURL::List KSaveSelectDialog::filesNotToSave( )
}
-KSaveAllDialog::KSaveAllDialog( const QStringList& filenames, QWidget* parent ) :
+KSaveAllDialog::KSaveAllDialog( const TQStringList& filenames, TQWidget* parent ) :
KDialogBase( parent, "SaveAllDialog", true, i18n("Save Modified Files?"),
Ok | User1 | Close )
{
m_result = Cancel;
- QVBox *top = makeVBoxMainWidget();
+ TQVBox *top = makeVBoxMainWidget();
- (void)new QLabel( i18n("The following files have been modified. Save them?"), top );
+ (void)new TQLabel( i18n("The following files have been modified. Save them?"), top );
KListBox* lb = new KListBox( top );
lb->setMinimumHeight( lb->fontMetrics().height() * 5 );
lb->insertStringList( filenames );
- setButtonOK( KGuiItem(i18n("Save &All"), QString::null, i18n("Saves all modified files")) );
+ setButtonOK( KGuiItem(i18n("Save &All"), TQString::null, i18n("Saves all modified files")) );
setButtonText( User1, i18n("Save &None") );
setButtonText( Close, KStdGuiItem::cancel().text() );
setButtonTip( User1, i18n("Lose all modifications") );
setButtonTip( Close, i18n("Cancels the action") );
- connect( this, SIGNAL(closeClicked()), this, SLOT(cancel()) );
- connect( this, SIGNAL(okClicked()), this, SLOT(saveAll()) );
- connect( this, SIGNAL(user1Clicked()), this, SLOT(revert()) );
+ connect( this, TQT_SIGNAL(closeClicked()), this, TQT_SLOT(cancel()) );
+ connect( this, TQT_SIGNAL(okClicked()), this, TQT_SLOT(saveAll()) );
+ connect( this, TQT_SIGNAL(user1Clicked()), this, TQT_SLOT(revert()) );
}
KSaveAllDialog::~KSaveAllDialog()
@@ -171,19 +171,19 @@ KSaveAllDialog::~KSaveAllDialog()
void KSaveAllDialog::revert()
{
m_result = Revert;
- QDialog::accept();
+ TQDialog::accept();
}
void KSaveAllDialog::saveAll()
{
m_result = SaveAll;
- QDialog::accept();
+ TQDialog::accept();
}
void KSaveAllDialog::cancel()
{
m_result = Cancel;
- QDialog::reject();
+ TQDialog::reject();
}
#include "ksavealldialog.moc"