From e16866e072f94410321d70daedbcb855ea878cac Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 6 Nov 2011 15:56:40 -0600 Subject: Actually move the kde files that were renamed in the last commit --- kdeui/tests/kxmlguitest.cpp | 64 --------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 kdeui/tests/kxmlguitest.cpp (limited to 'kdeui/tests/kxmlguitest.cpp') diff --git a/kdeui/tests/kxmlguitest.cpp b/kdeui/tests/kxmlguitest.cpp deleted file mode 100644 index a903aeb3f..000000000 --- a/kdeui/tests/kxmlguitest.cpp +++ /dev/null @@ -1,64 +0,0 @@ -#include "kxmlguitest.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -void Client::slotSec() -{ - kdDebug() << "Client::slotSec()" << endl; -} - -int main( int argc, char **argv ) -{ - KApplication app( argc, argv, "kxmlguitest" ); - - // KXMLGUIClient looks in the "data" resource for the .rc files - // Let's add $PWD (ideally $srcdir instead...) to it - KGlobal::dirs()->addResourceDir( "data", TQDir::currentDirPath() ); - - KMainWindow *mainwindow = new KMainWindow; - - TQLineEdit* line = new TQLineEdit( mainwindow ); - mainwindow->setCentralWidget( line ); - - mainwindow->show(); - - KXMLGUIBuilder *builder = new KXMLGUIBuilder( mainwindow ); - - KXMLGUIFactory *factory = new KXMLGUIFactory( builder ); - - Client *shell = new Client; - shell->setInstance( new KInstance( "konqueror" ) ); - shell->instance()->dirs()->addResourceDir( "data", TQDir::currentDirPath() ); - - (void)new KAction( "Split", "view_left_right", 0, 0, 0, shell->actionCollection(), "splitviewh" ); - - shell->setXMLFile( "./kxmlguitest_shell.rc" ); - - factory->addClient( shell ); - - Client *part = new Client; - - (void)new KAction( "decfont", "viewmag-", 0, 0, 0, part->actionCollection(), "decFontSizes" ); - (void)new KAction( "sec", "unlock", Qt::ALT + Qt::Key_1, part, TQT_SLOT( slotSec() ), part->actionCollection(), "security" ); - - part->setXMLFile( "./kxmlguitest_part.rc" ); - - factory->addClient( part ); - for ( int i = 0; i < 10; ++i ) - { - factory->removeClient( part ); - factory->addClient( part ); - } - - return app.exec(); -} -#include "kxmlguitest.moc" -- cgit v1.2.3