summaryrefslogtreecommitdiffstats
path: root/adept/manager/app.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adept/manager/app.cpp')
-rw-r--r--adept/manager/app.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/adept/manager/app.cpp b/adept/manager/app.cpp
index f1330d2..e1e2254 100644
--- a/adept/manager/app.cpp
+++ b/adept/manager/app.cpp
@@ -107,49 +107,49 @@ void TestApp::delayed() {
void TestApp::setupActions()
{
- (new KAction(
+ (new TDEAction(
i18n( "Fetch Updates" ), u8( "adept_update" ),
0, TQT_TQOBJECT(this), TQT_SLOT( update() ), actionCollection(),
"update" ))->setEnabled( false );
- (new KAction(
+ (new TDEAction(
i18n( "Reload Cache" ), u8( "adept_reload" ),
0, TQT_TQOBJECT(this), TQT_SLOT( reload() ), actionCollection(),
"reload" ))->setEnabled( false );
- m_upgrade = new KAction(
+ m_upgrade = new TDEAction(
i18n( "Safe Upgrade" ), u8( "adept_upgrade" ),
0, TQT_TQOBJECT(this), TQT_SLOT( upgrade() ), actionCollection(),
"upgrade" );
- m_distUpgrade = new KAction(
+ m_distUpgrade = new TDEAction(
i18n( "Full Upgrade" ), u8( "adept_distupgrade" ),
0, TQT_TQOBJECT(this), TQT_SLOT( distUpgrade() ), actionCollection(),
"dist-upgrade" );
- m_commit = new KAction(
+ m_commit = new TDEAction(
i18n( "Apply Changes" ), u8( "adept_commit" ),
0, TQT_TQOBJECT(this), TQT_SLOT( commit() ), actionCollection(),
"commit" );
- m_sourcesAction = new KToggleAction(
+ m_sourcesAction = new TDEToggleAction(
i18n( "Manage Repositories" ), u8( "adept_sourceseditor" ),
0, TQT_TQOBJECT(this), TQT_SLOT( toggleSources() ), actionCollection(),
"sourceseditor" );
- m_previewAction = new KToggleAction(
+ m_previewAction = new TDEToggleAction(
i18n( "Preview Changes" ), u8( "adept_preview" ),
0, TQT_TQOBJECT(this), TQT_SLOT( togglePreview() ), actionCollection(),
"preview" );
- m_progressAction = new KToggleAction(
+ m_progressAction = new TDEToggleAction(
i18n( "Show Last Download" ), u8( "adept_download_out" ),
0, TQT_TQOBJECT(this), TQT_SLOT( toggleDownload() ), actionCollection(),
"download_out" );
- m_commitProgressAction = new KToggleAction(
+ m_commitProgressAction = new TDEToggleAction(
i18n( "Show Last DPkg Run" ), u8( "adept_commit_out" ),
0, TQT_TQOBJECT(this), TQT_SLOT( toggleCommit() ), actionCollection(),
"commit_out" );
- m_listAction = new KToggleAction(
+ m_listAction = new TDEToggleAction(
i18n( "Show Package List" ), u8( "adept_packagelist" ),
0, TQT_TQOBJECT(this), TQT_SLOT( closeModes() ), actionCollection(),
"packagelist" );
@@ -196,9 +196,9 @@ void TestApp::updateActionState()
bool e = m_actionsEnabled;
bool w = cache::Global::get().writeable();
component::State &s = cache::Global::get().state();
- KActionPtrList a = actionCollection()->actions();
+ TDEActionPtrList a = actionCollection()->actions();
/* View menus seem to be BROKEN HERE?! */
- for (KActionPtrList::iterator i = a.begin(); i != a.end(); ++i) {
+ for (TDEActionPtrList::iterator i = a.begin(); i != a.end(); ++i) {
if ( u8( (*i)->name() ) == u8( "update" ) ) {
(*i)->setEnabled( e && w );
} else if ( u8( (*i)->name() ) == u8( "preview" ) ) {
@@ -215,7 +215,7 @@ void TestApp::updateActionState()
template< typename T, typename In >
void TestApp::aptAction( In b, In e ) {
- const KAction *a = dynamic_cast<const KAction *>( sender() ); // HACK
+ const TDEAction *a = dynamic_cast<const TDEAction *>( sender() ); // HACK
typename T::Vector v = T::list();
for (typename T::Vector::iterator i = v.begin(); i != v.end(); ++i) {
if( a->name() == i->name() ) {