diff options
Diffstat (limited to 'src/plugins/General')
23 files changed, 37 insertions, 37 deletions
diff --git a/src/plugins/General/covermanager/covermanagerfactory.cpp b/src/plugins/General/covermanager/covermanagerfactory.cpp index 041e797d0..722f37675 100644 --- a/src/plugins/General/covermanager/covermanagerfactory.cpp +++ b/src/plugins/General/covermanager/covermanagerfactory.cpp @@ -29,8 +29,8 @@ const GeneralProperties CoverManagerFactory::properties() const properties.name = tr("Cover Manager Plugin"); properties.shortName = "cover_manager"; properties.hasAbout = true; - properties.hasSettings = FALSE; - properties.visibilityControl = FALSE; + properties.hasSettings = false; + properties.visibilityControl = false; return properties; } diff --git a/src/plugins/General/fileops/fileops.cpp b/src/plugins/General/fileops/fileops.cpp index f9555592b..1cfe6e6d9 100644 --- a/src/plugins/General/fileops/fileops.cpp +++ b/src/plugins/General/fileops/fileops.cpp @@ -104,7 +104,7 @@ void FileOps::execAction(int n) progress.setWindowTitle(tr("Copying")); progress.setCancelButtonText(tr("Stop")); progress.show(); - progress.setAutoClose (FALSE); + progress.setAutoClose (false); int i = 0; foreach(PlayListItem *item, items) { diff --git a/src/plugins/General/fileops/fileopsfactory.cpp b/src/plugins/General/fileops/fileopsfactory.cpp index 13b126afa..9221ac7bd 100644 --- a/src/plugins/General/fileops/fileopsfactory.cpp +++ b/src/plugins/General/fileops/fileopsfactory.cpp @@ -31,7 +31,7 @@ const GeneralProperties FileOpsFactory::properties() const properties.shortName = "fileops"; properties.hasAbout = true; properties.hasSettings = true; - properties.visibilityControl = FALSE; + properties.visibilityControl = false; return properties; } diff --git a/src/plugins/General/hal/halfactory.cpp b/src/plugins/General/hal/halfactory.cpp index 139c80040..0637bab71 100644 --- a/src/plugins/General/hal/halfactory.cpp +++ b/src/plugins/General/hal/halfactory.cpp @@ -31,7 +31,7 @@ const GeneralProperties HalFactory::properties() const properties.shortName = "hal"; properties.hasAbout = true; properties.hasSettings = true; - properties.visibilityControl = FALSE; + properties.visibilityControl = false; return properties; } diff --git a/src/plugins/General/hal/halplugin.cpp b/src/plugins/General/hal/halplugin.cpp index 94364f44d..f91e97194 100644 --- a/src/plugins/General/hal/halplugin.cpp +++ b/src/plugins/General/hal/halplugin.cpp @@ -43,17 +43,17 @@ HalPlugin::HalPlugin(QObject *parent) settings.beginGroup("HAL"); m_detectCDA = settings.value("cda", true).toBool(); m_detectRemovable = settings.value("removable", true).toBool(); - m_addTracks = FALSE; //do not load tracks on startup - m_addFiles = FALSE; + m_addTracks = false; //do not load tracks on startup + m_addFiles = false; //find existing devices QStringList udis = m_manager->findDeviceByCapability("volume"); foreach(QString udi, udis) addDevice(udi); //load remaining settings - m_addTracks = settings.value("add_tracks", FALSE).toBool(); - m_removeTracks = settings.value("remove_tracks", FALSE).toBool(); - m_addFiles = settings.value("add_files", FALSE).toBool(); - m_removeFiles = settings.value("remove_files", FALSE).toBool(); + m_addTracks = settings.value("add_tracks", false).toBool(); + m_removeTracks = settings.value("remove_tracks", false).toBool(); + m_addFiles = settings.value("add_files", false).toBool(); + m_removeFiles = settings.value("remove_files", false).toBool(); settings.endGroup(); } diff --git a/src/plugins/General/hal/settingsdialog.cpp b/src/plugins/General/hal/settingsdialog.cpp index 45987a3d7..17fbea323 100644 --- a/src/plugins/General/hal/settingsdialog.cpp +++ b/src/plugins/General/hal/settingsdialog.cpp @@ -31,11 +31,11 @@ SettingsDialog::SettingsDialog(QWidget *parent) QSettings settings(Qmmp::configFile(), QSettings::IniFormat); settings.beginGroup("HAL"); ui.cdGroupBox->setChecked(settings.value("cda", true).toBool()); - ui.addTracksCheckBox->setChecked(settings.value("add_tracks", FALSE).toBool()); - ui.removeTracksCheckBox->setChecked(settings.value("remove_tracks", FALSE).toBool()); + ui.addTracksCheckBox->setChecked(settings.value("add_tracks", false).toBool()); + ui.removeTracksCheckBox->setChecked(settings.value("remove_tracks", false).toBool()); ui.removableGroupBox->setChecked(settings.value("removable", true).toBool()); - ui.addFilesCheckBox->setChecked(settings.value("add_files", FALSE).toBool()); - ui.removeFilesCheckBox->setChecked(settings.value("remove_files", FALSE).toBool()); + ui.addFilesCheckBox->setChecked(settings.value("add_files", false).toBool()); + ui.removeFilesCheckBox->setChecked(settings.value("remove_files", false).toBool()); settings.endGroup(); } diff --git a/src/plugins/General/hotkey/hotkeyfactory.cpp b/src/plugins/General/hotkey/hotkeyfactory.cpp index 2add2eecb..01035e4a1 100644 --- a/src/plugins/General/hotkey/hotkeyfactory.cpp +++ b/src/plugins/General/hotkey/hotkeyfactory.cpp @@ -31,7 +31,7 @@ const GeneralProperties HotkeyFactory::properties() const properties.shortName = "hotkey"; properties.hasAbout = true; properties.hasSettings = true; - properties.visibilityControl = FALSE; + properties.visibilityControl = false; return properties; } diff --git a/src/plugins/General/hotkey/hotkeymanager.cpp b/src/plugins/General/hotkey/hotkeymanager.cpp index 23d93571e..c21431cea 100644 --- a/src/plugins/General/hotkey/hotkeymanager.cpp +++ b/src/plugins/General/hotkey/hotkeymanager.cpp @@ -193,7 +193,7 @@ long HotkeyManager::m_meta_mask = 0; long HotkeyManager::m_super_mask = 0; long HotkeyManager::m_hyper_mask = 0; long HotkeyManager::m_numlock_mask = 0; -bool HotkeyManager::m_haveMods = FALSE; +bool HotkeyManager::m_haveMods = false; //copied from globalshortcutmanager_x11.cpp by Justin Karneges and Michail Pishchagin (Psi project) void HotkeyManager::ensureModifiers() diff --git a/src/plugins/General/kdenotify/kdenotifyfactory.cpp b/src/plugins/General/kdenotify/kdenotifyfactory.cpp index ffeaffafe..59fca89b7 100644 --- a/src/plugins/General/kdenotify/kdenotifyfactory.cpp +++ b/src/plugins/General/kdenotify/kdenotifyfactory.cpp @@ -31,7 +31,7 @@ const GeneralProperties KdeNotifyFactory::properties() const properties.shortName = "kdenotify_icon"; properties.hasAbout = true; properties.hasSettings = true; - properties.visibilityControl = FALSE; + properties.visibilityControl = false; return properties; } diff --git a/src/plugins/General/lyrics/lyricsfactory.cpp b/src/plugins/General/lyrics/lyricsfactory.cpp index d8ba2e224..577484a32 100644 --- a/src/plugins/General/lyrics/lyricsfactory.cpp +++ b/src/plugins/General/lyrics/lyricsfactory.cpp @@ -29,8 +29,8 @@ const GeneralProperties LyricsFactory::properties() const properties.name = tr("Lyrics Plugin"); properties.shortName = "lyrics"; properties.hasAbout = true; - properties.hasSettings = FALSE; - properties.visibilityControl = FALSE; + properties.hasSettings = false; + properties.visibilityControl = false; return properties; } diff --git a/src/plugins/General/lyrics/lyricswindow.cpp b/src/plugins/General/lyrics/lyricswindow.cpp index 70d385345..9dac146c2 100644 --- a/src/plugins/General/lyrics/lyricswindow.cpp +++ b/src/plugins/General/lyrics/lyricswindow.cpp @@ -33,7 +33,7 @@ LyricsWindow::LyricsWindow(const QString &artist, const QString &title, QWidget ui.setupUi(this); setWindowFlags(Qt::Dialog); setAttribute(Qt::WA_DeleteOnClose); - setAttribute(Qt::WA_QuitOnClose, FALSE); + setAttribute(Qt::WA_QuitOnClose, false); ui.artistLineEdit->setText(artist); ui.titleLineEdit->setText(title); m_http = new QNetworkAccessManager(this); diff --git a/src/plugins/General/mpris/mprisfactory.cpp b/src/plugins/General/mpris/mprisfactory.cpp index 1adc96458..059ea056c 100644 --- a/src/plugins/General/mpris/mprisfactory.cpp +++ b/src/plugins/General/mpris/mprisfactory.cpp @@ -29,8 +29,8 @@ const GeneralProperties MPRISFactory::properties() const properties.name = tr("MPRIS Plugin"); properties.shortName = "mpris"; properties.hasAbout = true; - properties.hasSettings = FALSE; - properties.visibilityControl = FALSE; + properties.hasSettings = false; + properties.visibilityControl = false; return properties; } diff --git a/src/plugins/General/notifier/notifier.cpp b/src/plugins/General/notifier/notifier.cpp index 80ac2d245..89bbad0e1 100644 --- a/src/plugins/General/notifier/notifier.cpp +++ b/src/plugins/General/notifier/notifier.cpp @@ -38,7 +38,7 @@ Notifier::Notifier(QObject *parent) settings.beginGroup("Notifier"); m_desktop = settings.value("song_notification", true).toBool(); m_showVolume = settings.value("volume_notification", true).toBool(); - m_psi = settings.value("psi_notification", FALSE).toBool(); + m_psi = settings.value("psi_notification", false).toBool(); settings.endGroup(); m_core = SoundCore::instance(); connect (m_core, SIGNAL(metaDataChanged ()), SLOT(showMetaData())); diff --git a/src/plugins/General/notifier/notifierfactory.cpp b/src/plugins/General/notifier/notifierfactory.cpp index 6efa8e802..a8259f16d 100644 --- a/src/plugins/General/notifier/notifierfactory.cpp +++ b/src/plugins/General/notifier/notifierfactory.cpp @@ -31,7 +31,7 @@ const GeneralProperties NotifierFactory::properties() const properties.shortName = "notifier"; properties.hasAbout = true; properties.hasSettings = true; - properties.visibilityControl = FALSE; + properties.visibilityControl = false; return properties; } diff --git a/src/plugins/General/notifier/popupwidget.cpp b/src/plugins/General/notifier/popupwidget.cpp index dfc860224..63049f3c5 100644 --- a/src/plugins/General/notifier/popupwidget.cpp +++ b/src/plugins/General/notifier/popupwidget.cpp @@ -40,7 +40,7 @@ PopupWidget::PopupWidget(QWidget *parent) setWindowFlags(Qt::X11BypassWindowManagerHint | Qt::WindowStaysOnTopHint | Qt::Dialog | Qt::FramelessWindowHint); setFrameStyle(QFrame::Box | QFrame::Plain); - setAttribute(Qt::WA_QuitOnClose, FALSE); + setAttribute(Qt::WA_QuitOnClose, false); QHBoxLayout *hlayout = new QHBoxLayout(this); //layout m_pixlabel = new QLabel(this); m_pixlabel->setPixmap(QPixmap(":/notifier_icon.png")); diff --git a/src/plugins/General/notifier/settingsdialog.cpp b/src/plugins/General/notifier/settingsdialog.cpp index 7bcf253cb..98ad8d218 100644 --- a/src/plugins/General/notifier/settingsdialog.cpp +++ b/src/plugins/General/notifier/settingsdialog.cpp @@ -45,7 +45,7 @@ SettingsDialog::SettingsDialog(QWidget *parent) ui.messageDelaySpinBox->setValue(settings.value("message_delay", 2000).toInt()); uint pos = settings.value("message_pos", PopupWidget::BOTTOMLEFT).toUInt(); m_buttons.value(pos)->setChecked(true); - ui.psiCheckBox->setChecked(settings.value("psi_notification", FALSE).toBool()); + ui.psiCheckBox->setChecked(settings.value("psi_notification", false).toBool()); ui.songCheckBox->setChecked(settings.value("song_notification", true).toBool()); ui.volumeCheckBox->setChecked(settings.value("volume_notification", true).toBool()); ui.transparencySlider->setValue(100 - settings.value("opacity", 1.0).toDouble()*100); diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp index ef4610a3a..307b6cd08 100644 --- a/src/plugins/General/scrobbler/scrobbler.cpp +++ b/src/plugins/General/scrobbler/scrobbler.cpp @@ -212,7 +212,7 @@ void Scrobbler::processResponse(QNetworkReply *reply) else { qWarning("Scrobbler[%s]: service error: %s", qPrintable(m_name), qPrintable(strlist[0])); - m_disabled = FALSE; + m_disabled = false; m_handshake_count++; QTimer::singleShot (60000 * qMin(m_handshake_count^2, 120) , this, SLOT(handshake())); qWarning("Scrobbler[%s]: waiting %d minutes...", qPrintable(m_name), diff --git a/src/plugins/General/scrobbler/scrobblerfactory.cpp b/src/plugins/General/scrobbler/scrobblerfactory.cpp index 332dd22ac..579efb4bc 100644 --- a/src/plugins/General/scrobbler/scrobblerfactory.cpp +++ b/src/plugins/General/scrobbler/scrobblerfactory.cpp @@ -31,7 +31,7 @@ const GeneralProperties ScrobblerFactory::properties() const properties.shortName = "scrobbler"; properties.hasAbout = true; properties.hasSettings = true; - properties.visibilityControl = FALSE; + properties.visibilityControl = false; return properties; } diff --git a/src/plugins/General/scrobbler/scrobblerhandler.cpp b/src/plugins/General/scrobbler/scrobblerhandler.cpp index 1bb627d62..2b9163672 100644 --- a/src/plugins/General/scrobbler/scrobblerhandler.cpp +++ b/src/plugins/General/scrobbler/scrobblerhandler.cpp @@ -29,13 +29,13 @@ ScrobblerHandler::ScrobblerHandler(QObject *parent) : General(parent) { QSettings settings(Qmmp::configFile(), QSettings::IniFormat); settings.beginGroup("Scrobbler"); - if(settings.value("use_lastfm", FALSE).toBool()) + if(settings.value("use_lastfm", false).toBool()) { new Scrobbler(SCROBBLER_LASTFM_URL, settings.value("lastfm_login").toString(), settings.value("lastfm_password").toString(), "lastfm", this); } - if(settings.value("use_librefm", FALSE).toBool()) + if(settings.value("use_librefm", false).toBool()) { new Scrobbler(SCROBBLER_LIBREFM_URL, settings.value("librefm_login").toString(), settings.value("librefm_password").toString(), "librefm", this); diff --git a/src/plugins/General/scrobbler/settingsdialog.cpp b/src/plugins/General/scrobbler/settingsdialog.cpp index 1015a1a6b..eb627dc7b 100644 --- a/src/plugins/General/scrobbler/settingsdialog.cpp +++ b/src/plugins/General/scrobbler/settingsdialog.cpp @@ -29,10 +29,10 @@ SettingsDialog::SettingsDialog(QWidget *parent) ui.setupUi(this); QSettings settings(Qmmp::configFile(), QSettings::IniFormat); settings.beginGroup("Scrobbler"); - ui.lastfmGroupBox->setChecked(settings.value("use_lastfm", FALSE).toBool()); + ui.lastfmGroupBox->setChecked(settings.value("use_lastfm", false).toBool()); ui.userLineEdit->setText(settings.value("lastfm_login").toString()); ui.passwordLineEdit->setText(settings.value("lastfm_password").toString()); - ui.librefmGroupBox->setChecked(settings.value("use_librefm", FALSE).toBool()); + ui.librefmGroupBox->setChecked(settings.value("use_librefm", false).toBool()); ui.userLineEdit_libre->setText(settings.value("librefm_login").toString()); ui.passwordLineEdit_libre->setText(settings.value("librefm_password").toString()); settings.endGroup(); diff --git a/src/plugins/General/statusicon/settingsdialog.cpp b/src/plugins/General/statusicon/settingsdialog.cpp index 7ee4a5add..1d2843376 100644 --- a/src/plugins/General/statusicon/settingsdialog.cpp +++ b/src/plugins/General/statusicon/settingsdialog.cpp @@ -37,7 +37,7 @@ SettingsDialog::SettingsDialog(QWidget *parent) ui.transparencySlider->setValue(settings.value("tooltip_transparency",0).toInt()); ui.coverSizeSlider->setValue(settings.value("tooltip_cover_size", 100).toInt()); ui.niceTooltipSplitCheckBox->setChecked(settings.value("split_file_name",true).toBool()); - ui.standardIconsCheckBox->setChecked(settings.value("use_standard_icons",FALSE).toBool()); + ui.standardIconsCheckBox->setChecked(settings.value("use_standard_icons",false).toBool()); ui.progressCheckBox->setChecked(settings.value("tooltip_progress",true).toBool()); m_template = settings.value("tooltip_template", DEFAULT_TEMPLATE).toString(); settings.endGroup(); diff --git a/src/plugins/General/statusicon/statusicon.cpp b/src/plugins/General/statusicon/statusicon.cpp index fb4fb2ed1..78302ecd1 100644 --- a/src/plugins/General/statusicon/statusicon.cpp +++ b/src/plugins/General/statusicon/statusicon.cpp @@ -46,8 +46,8 @@ StatusIcon::StatusIcon(QObject *parent) settings.beginGroup("Tray"); m_showMessage = settings.value("show_message",true).toBool(); m_messageDelay = settings.value("message_delay", 2000).toInt(); - m_hideToTray = settings.value("hide_on_close", FALSE).toBool(); - m_useStandardIcons = settings.value("use_standard_icons",FALSE).toBool(); + m_hideToTray = settings.value("hide_on_close", false).toBool(); + m_useStandardIcons = settings.value("use_standard_icons",false).toBool(); m_tray->showNiceToolTip(settings.value("show_nicetooltip",true).toBool()); if(m_useStandardIcons) m_tray->setIcon(QApplication::style ()->standardIcon(QStyle::SP_MediaStop)); diff --git a/src/plugins/General/statusicon/statusiconpopupwidget.cpp b/src/plugins/General/statusicon/statusiconpopupwidget.cpp index 51811c984..e1ed9cdba 100644 --- a/src/plugins/General/statusicon/statusiconpopupwidget.cpp +++ b/src/plugins/General/statusicon/statusiconpopupwidget.cpp @@ -44,7 +44,7 @@ StatusIconPopupWidget::StatusIconPopupWidget(QWidget * parent) setWindowFlags(Qt::X11BypassWindowManagerHint | Qt::WindowStaysOnTopHint | Qt::Dialog | Qt::FramelessWindowHint); setFrameStyle(QFrame::NoFrame | QFrame::Plain); - setAttribute(Qt::WA_QuitOnClose, FALSE); + setAttribute(Qt::WA_QuitOnClose, false); m_hLayout = new QHBoxLayout(); m_vLayout = new QVBoxLayout(); |
