Rename a number of classes to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent e5fbedb515
commit 7a908375e7

@ -60,7 +60,7 @@
<enum>Horizontal</enum> <enum>Horizontal</enum>
</property> </property>
</widget> </widget>
<widget class="KActionSelector"> <widget class="TDEActionSelector">
<property name="name"> <property name="name">
<cstring>optionList</cstring> <cstring>optionList</cstring>
</property> </property>

@ -38,7 +38,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="KListView"> <widget class="TDEListView">
<column> <column>
<property name="text"> <property name="text">
<string>Source</string> <string>Source</string>

@ -60,7 +60,7 @@
<enum>Horizontal</enum> <enum>Horizontal</enum>
</property> </property>
</widget> </widget>
<widget class="KListView"> <widget class="TDEListView">
<column> <column>
<property name="text"> <property name="text">
<string>Source</string> <string>Source</string>

@ -121,7 +121,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="KListView"> <widget class="TDEListView">
<column> <column>
<property name="text"> <property name="text">
<string>Item</string> <string>Item</string>

@ -44,7 +44,7 @@
#include "keepsettings.h" #include "keepsettings.h"
#include "logdialog.h" #include "logdialog.h"
KeepMainWindow::KeepMainWindow(TQWidget *parent, const char *name): KMainWindow(parent,name) KeepMainWindow::KeepMainWindow(TQWidget *parent, const char *name): TDEMainWindow(parent,name)
{ {
setCaption(i18n("Backup System")); setCaption(i18n("Backup System"));
@ -79,13 +79,13 @@ KeepMainWindow::~KeepMainWindow()
void KeepMainWindow::initActions() void KeepMainWindow::initActions()
{ {
KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection()); KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
new KAction( i18n("Check rdiff-backup"), "info", "", TQT_TQOBJECT(this), TQT_SLOT(slotCheckRDB()), actionCollection(), "check_rdiff-backup" ); new TDEAction( i18n("Check rdiff-backup"), "info", "", TQT_TQOBJECT(this), TQT_SLOT(slotCheckRDB()), actionCollection(), "check_rdiff-backup" );
new KAction( i18n("Configure backups"), "configure", "", TQT_TQOBJECT(this), TQT_SLOT(slotConfigureBackup()), actionCollection(), "configure_backups" ); new TDEAction( i18n("Configure backups"), "configure", "", TQT_TQOBJECT(this), TQT_SLOT(slotConfigureBackup()), actionCollection(), "configure_backups" );
new KAction( i18n("Configure"), "configure", "", TQT_TQOBJECT(this), TQT_SLOT(slotConfigure()), actionCollection(), "configure_keep" ); new TDEAction( i18n("Configure"), "configure", "", TQT_TQOBJECT(this), TQT_SLOT(slotConfigure()), actionCollection(), "configure_keep" );
new KAction( i18n("Add Backup"), "add_backup", "", TQT_TQOBJECT(this), TQT_SLOT(slotAddBackupWizard()), actionCollection(), "add_backup" ); new TDEAction( i18n("Add Backup"), "add_backup", "", TQT_TQOBJECT(this), TQT_SLOT(slotAddBackupWizard()), actionCollection(), "add_backup" );
new KAction( i18n("Restore Backup"), "restore_dir", "", TQT_TQOBJECT(this), TQT_SLOT(slotRestoreBackupWizard()), actionCollection(), "restore_backup" ); new TDEAction( i18n("Restore Backup"), "restore_dir", "", TQT_TQOBJECT(this), TQT_SLOT(slotRestoreBackupWizard()), actionCollection(), "restore_backup" );
new KAction( i18n("Backup Now"), "force_backup", "", TQT_TQOBJECT(this), TQT_SLOT(slotForceBackup()), actionCollection(), "force_backup" ); new TDEAction( i18n("Backup Now"), "force_backup", "", TQT_TQOBJECT(this), TQT_SLOT(slotForceBackup()), actionCollection(), "force_backup" );
new KAction( i18n("View log"), "log", "", TQT_TQOBJECT(this), TQT_SLOT(slotViewLog()), actionCollection(), "view_log"); new TDEAction( i18n("View log"), "log", "", TQT_TQOBJECT(this), TQT_SLOT(slotViewLog()), actionCollection(), "view_log");
} }
void KeepMainWindow::initConnections() void KeepMainWindow::initConnections()

@ -26,7 +26,7 @@
#include "backup.h" #include "backup.h"
#include "actionview.h" #include "actionview.h"
class KeepMainWindow: public KMainWindow class KeepMainWindow: public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT

@ -66,7 +66,7 @@ void LogDialog::slotLoadLog()
while ( !stream.atEnd() ) { while ( !stream.atEnd() ) {
line = stream.readLine(); // line of text excluding '\n' line = stream.readLine(); // line of text excluding '\n'
TQStringList params = TQStringList::split("\t",line); TQStringList params = TQStringList::split("\t",line);
KListViewItem *item = new KListViewItem(m_view->logList,params[0],params[1],params[2]); TDEListViewItem *item = new TDEListViewItem(m_view->logList,params[0],params[1],params[2]);
} }
file.close(); file.close();
} }

@ -32,7 +32,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="KListView"> <widget class="TDEListView">
<column> <column>
<property name="text"> <property name="text">
<string>Date</string> <string>Date</string>

@ -46,7 +46,7 @@ RestoreBackupWizard::RestoreBackupWizard(TQWidget *parent,const char* name): KWi
this->setIcon( icons.loadIcon( "wizard",KIcon::Small )); this->setIcon( icons.loadIcon( "wizard",KIcon::Small ));
this->setCaption("Restore a backup"); this->setCaption("Restore a backup");
m_popup = new KPopupMenu(this); m_popup = new TDEPopupMenu(this);
m_popup->insertTitle(i18n("Menu")); m_popup->insertTitle(i18n("Menu"));
m_popup->insertItem(i18n("Show differences destination/backup"), this, TQT_SLOT(slotShowDiff())); m_popup->insertItem(i18n("Show differences destination/backup"), this, TQT_SLOT(slotShowDiff()));
m_popup->insertItem(i18n("List changed files"), this, TQT_SLOT(slotShowChanged())); m_popup->insertItem(i18n("List changed files"), this, TQT_SLOT(slotShowChanged()));
@ -76,7 +76,7 @@ void RestoreBackupWizard::initConnections()
connect(restoreBackupWizard1View->btnCustomSource, TQT_SIGNAL( toggled(bool)),this,TQT_SLOT(slotCustomSourceChecked(bool))); connect(restoreBackupWizard1View->btnCustomSource, TQT_SIGNAL( toggled(bool)),this,TQT_SLOT(slotCustomSourceChecked(bool)));
// Date selection popup menu // Date selection popup menu
connect(restoreBackupWizard3View->incrementList, TQT_SIGNAL(contextMenu (KListView *, TQListViewItem *, const TQPoint &)), this, TQT_SLOT(slotContextMenu(KListView *,TQListViewItem*,const TQPoint&))); connect(restoreBackupWizard3View->incrementList, TQT_SIGNAL(contextMenu (TDEListView *, TQListViewItem *, const TQPoint &)), this, TQT_SLOT(slotContextMenu(TDEListView *,TQListViewItem*,const TQPoint&)));
// Page 1 changes // Page 1 changes
connect(restoreBackupWizard1View->m_lstBackup,TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(slotPage1Changed())); connect(restoreBackupWizard1View->m_lstBackup,TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(slotPage1Changed()));
@ -226,7 +226,7 @@ void RestoreBackupWizard::setupPage3()
addPage( page3, "Date to restore" ); addPage( page3, "Date to restore" );
} }
void RestoreBackupWizard::slotContextMenu(KListView *list,TQListViewItem *item,const TQPoint&p) void RestoreBackupWizard::slotContextMenu(TDEListView *list,TQListViewItem *item,const TQPoint&p)
{ {
m_popup->popup(p, 1); m_popup->popup(p, 1);
} }

@ -42,7 +42,7 @@ public:
void setBackup(Backup backup); void setBackup(Backup backup);
protected slots: protected slots:
void slotContextMenu(KListView *list,TQListViewItem * item,const TQPoint &point); void slotContextMenu(TDEListView *list,TQListViewItem * item,const TQPoint &point);
void slotPage1Changed(); void slotPage1Changed();
void slotPage2Changed(); void slotPage2Changed();
void slotPage3Changed(); void slotPage3Changed();
@ -63,7 +63,7 @@ private:
void setupPage3(); void setupPage3();
void initConnections(); void initConnections();
KPopupMenu *m_popup; TDEPopupMenu *m_popup;
TQHBox *page1,*page2,*page3; TQHBox *page1,*page2,*page3;
RestoreBackupWizard1View *restoreBackupWizard1View ; RestoreBackupWizard1View *restoreBackupWizard1View ;
RestoreBackupWizard2View *restoreBackupWizard2View; RestoreBackupWizard2View *restoreBackupWizard2View;

@ -100,7 +100,7 @@
<string>Select the backup to restore.</string> <string>Select the backup to restore.</string>
</property> </property>
</widget> </widget>
<widget class="KListView"> <widget class="TDEListView">
<column> <column>
<property name="text"> <property name="text">
<string>Source</string> <string>Source</string>

@ -189,7 +189,7 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="KListView"> <widget class="TDEListView">
<column> <column>
<property name="text"> <property name="text">
<string>Date</string> <string>Date</string>

@ -22,7 +22,7 @@
#include <tqdir.h> #include <tqdir.h>
#include <klistview.h> #include <klistview.h>
BackupListViewItem::BackupListViewItem(KListView *parent,Backup &backup): TQListViewItem (parent) BackupListViewItem::BackupListViewItem(TDEListView *parent,Backup &backup): TQListViewItem (parent)
{ {
setBackup(backup); setBackup(backup);
} }

@ -26,7 +26,7 @@
class BackupListViewItem : public TQListViewItem class BackupListViewItem : public TQListViewItem
{ {
public: public:
BackupListViewItem(KListView *parent,Backup &backup); BackupListViewItem(TDEListView *parent,Backup &backup);
~BackupListViewItem(); ~BackupListViewItem();
Backup backup(); Backup backup();

@ -22,12 +22,12 @@
#include <tqdir.h> #include <tqdir.h>
#include <klistview.h> #include <klistview.h>
IncludeExcludeItem::IncludeExcludeItem(KListView *parent,TQString includeExclude): TQListViewItem (parent) IncludeExcludeItem::IncludeExcludeItem(TDEListView *parent,TQString includeExclude): TQListViewItem (parent)
{ {
setIncludeExclude(includeExclude); setIncludeExclude(includeExclude);
} }
IncludeExcludeItem::IncludeExcludeItem(KListView *parent,IncludeExcludeItem *item,TQString includeExclude): TQListViewItem (parent,item) IncludeExcludeItem::IncludeExcludeItem(TDEListView *parent,IncludeExcludeItem *item,TQString includeExclude): TQListViewItem (parent,item)
{ {
setIncludeExclude(includeExclude); setIncludeExclude(includeExclude);
} }

@ -26,8 +26,8 @@
class IncludeExcludeItem : public TQListViewItem class IncludeExcludeItem : public TQListViewItem
{ {
public: public:
IncludeExcludeItem(KListView *parent,TQString includeExclude); IncludeExcludeItem(TDEListView *parent,TQString includeExclude);
IncludeExcludeItem(KListView *parent,IncludeExcludeItem *item,TQString includeExclude); IncludeExcludeItem(TDEListView *parent,IncludeExcludeItem *item,TQString includeExclude);
~IncludeExcludeItem(); ~IncludeExcludeItem();
TQString includeExclude(); TQString includeExclude();

@ -22,12 +22,12 @@
#include <tqdir.h> #include <tqdir.h>
#include <klistview.h> #include <klistview.h>
IncrementListViewItem::IncrementListViewItem(KListView *parent,TQDateTime date): TQListViewItem (parent) IncrementListViewItem::IncrementListViewItem(TDEListView *parent,TQDateTime date): TQListViewItem (parent)
{ {
setDate(date); setDate(date);
} }
IncrementListViewItem::IncrementListViewItem(KListView *parent,TQListViewItem *item,TQDateTime date): TQListViewItem (parent,item) IncrementListViewItem::IncrementListViewItem(TDEListView *parent,TQListViewItem *item,TQDateTime date): TQListViewItem (parent,item)
{ {
setDate(date); setDate(date);
} }

@ -26,8 +26,8 @@
class IncrementListViewItem : public TQListViewItem class IncrementListViewItem : public TQListViewItem
{ {
public: public:
IncrementListViewItem(KListView *parent, TQDateTime date); IncrementListViewItem(TDEListView *parent, TQDateTime date);
IncrementListViewItem(KListView *parent, TQListViewItem *item,TQDateTime date); IncrementListViewItem(TDEListView *parent, TQListViewItem *item,TQDateTime date);
~IncrementListViewItem(); ~IncrementListViewItem();
TQDateTime date(); TQDateTime date();

Loading…
Cancel
Save