1 #//(c) 2005 Ian Monroe see COPYING
2 /****************************************************************************
3 ** ui.h extension file, included from the uic-generated form implementation.
5 ** If you want to add, delete, or rename functions or slots, use
6 ** Qt Designer to update this file, preserving your code.
8 ** You should not define a constructor or destructor in this file.
9 ** Instead, write your code in functions called init() and destroy().
10 ** These will automatically be called by the form's constructor and
12 *****************************************************************************/
13 #include "config-amarok.h"
14 #include "amarokconfig.h"
15 #include "collectiondb.h"
19 configStack
->raiseWidget( 0 );
21 databaseEngine
->addItem( "MySQL", -1 );
22 if (AmarokConfig::databaseEngine() == QString::number(DbConnection::mysql
))
24 databaseEngine
->setCurrentItem("MySQL");
25 configStack
->raiseWidget( 1 );
30 databaseEngine
->addItem( "Postgresql", -1 );
31 if (AmarokConfig::databaseEngine() == QString::number(DbConnection::postgresql
))
33 databaseEngine
->setCurrentItem("Postgresql");
34 configStack
->raiseWidget( 2 );
39 void DbSetup::databaseEngine_activated( int item
)
42 configStack
->raiseWidget( 0 );
44 // If built with MySQL support, the PostgreSQL config widget is #2
45 // Without MySQL it's #1
48 configStack
->raiseWidget( 1 );
50 configStack
->raiseWidget( 2 );
51 #elif defined(USE_POSTGRESQL)
53 configStack
->raiseWidget( 2 );