//----------------------------------------------------------------------------- void SplashInstaller::slotFilesDropped(const KUrl::List &urls) { for(KUrl::List::ConstIterator it = urls.constBegin(); it != urls.end(); ++it) addNewTheme(*it); }
//----------------------------------------------------------------------------- void SplashInstaller::slotAdd() { static QString path; if (path.isEmpty()) path = QDir::homePath(); KFileDialog dlg(path, "*.tgz *.tar.gz *.tar.bz2 theme.rc|" + i18n( "KSplash Theme Files" ), this); dlg.setCaption(i18n("Add Theme")); if (!dlg.exec()) return; path = dlg.baseUrl().url(); addNewTheme(dlg.selectedUrl()); }
void kthememanager::slotFilesDropped( const KURL::List & urls ) { for ( KURL::List::ConstIterator it = urls.begin(); it != urls.end(); ++it ) addNewTheme( *it ); }
void kthememanager::slotInstallTheme() { addNewTheme( KFileDialog::getOpenURL( ":themes", "*.kth|" + i18n("Theme Files"), this, i18n( "Select Theme File" ) ) ); }