85 mSongIndex( 0 ) |
85 mSongIndex( 0 ) |
86 { |
86 { |
87 mThemeBox->setEditable( false ); |
87 mThemeBox->setEditable( false ); |
88 initThemes(); |
88 initThemes(); |
89 |
89 |
90 connectAndTest( mOrientationButton, SIGNAL(clicked()), this, SLOT(changeOrientation()) ); |
90 Radio::connect( mOrientationButton, SIGNAL(clicked()), this, SLOT(changeOrientation()) ); |
91 connectAndTest( mVolUpButton, SIGNAL(clicked()), this, SLOT(volumeUp()) ); |
91 Radio::connect( mVolUpButton, SIGNAL(clicked()), this, SLOT(volumeUp()) ); |
92 connectAndTest( mVolDownButton, SIGNAL(clicked()), this, SLOT(volumeDown()) ); |
92 Radio::connect( mVolDownButton, SIGNAL(clicked()), this, SLOT(volumeDown()) ); |
93 connectAndTest( mHeadsetButton, SIGNAL(clicked()), this, SLOT(toggleHeadsetStatus()) ); |
93 Radio::connect( mHeadsetButton, SIGNAL(clicked()), this, SLOT(toggleHeadsetStatus()) ); |
94 connectAndTest( mAddSongButton, SIGNAL(clicked()), this, SLOT(addSong()) ); |
94 Radio::connect( mAddSongButton, SIGNAL(clicked()), this, SLOT(addSong()) ); |
95 connectAndTest( mClearSongButton, SIGNAL(clicked()), this, SLOT(clearSong()) ); |
95 Radio::connect( mClearSongButton, SIGNAL(clicked()), this, SLOT(clearSong()) ); |
96 connectAndTest( mOfflineButton, SIGNAL(clicked()), this, SLOT(toggleOffline()) ); |
96 Radio::connect( mOfflineButton, SIGNAL(clicked()), this, SLOT(toggleOffline()) ); |
97 connectAndTest( mThemeBox, SIGNAL(activated(QString)), this, SLOT(changeTheme(QString)) ); |
97 Radio::connect( mThemeBox, SIGNAL(activated(QString)), this, SLOT(changeTheme(QString)) ); |
98 |
98 |
99 QTimer::singleShot( 0, this, SLOT(updateWindowSize()) ); |
99 QTimer::singleShot( 0, this, SLOT(updateWindowSize()) ); |
100 } |
100 } |
101 |
101 |
102 /*! |
102 /*! |