Commit d54221cc authored by Laurent Montel's avatar Laurent Montel 😁

Start to compile with "-DQT_NO_CAST_FROM_ASCII-DQT_NO_CAST_TO_ASCII "


svn path=/trunk/KDE/kdemultimedia/juk/; revision=1180405
parent 73e8483f
......@@ -43,7 +43,7 @@ AdvancedSearchDialog::AdvancedSearchDialog(const QString &defaultName,
setCaption( i18n("Create Search Playlist") );
setButtons( Ok|Cancel );
setDefaultButton( Ok );
setObjectName(name);
setObjectName( QLatin1String( name ) );
setModal(true);
KVBox *mw = new KVBox(this);
......
......@@ -61,7 +61,7 @@ public:
QWidget *parent = 0, const char *name = 0)
: KDialog(parent)
{
setObjectName(name);
setObjectName( QLatin1String( name ) );
setModal(true);
setCaption(i18nc("warning about mass file rename", "Warning"));
setButtons(Ok | Cancel);
......
......@@ -187,33 +187,33 @@ void JuK::setupActions()
// Setup the menu which handles the random play options.
KActionMenu *actionMenu = collection->add<KActionMenu>("actionMenu");
actionMenu->setText(i18n("&Random Play"));
actionMenu->setIcon(KIcon("media-playlist-shuffle"));
actionMenu->setIcon(KIcon( QLatin1String( "media-playlist-shuffle" )));
actionMenu->setDelayed(false);
QActionGroup* randomPlayGroup = new QActionGroup(this);
QAction *act = collection->add<KToggleAction>("disableRandomPlay");
act->setText(i18n("&Disable Random Play"));
act->setIcon(KIcon("go-down"));
act->setIcon(KIcon( QLatin1String( "go-down" )));
act->setActionGroup(randomPlayGroup);
actionMenu->addAction(act);
m_randomPlayAction = collection->add<KToggleAction>("randomPlay");
m_randomPlayAction->setText(i18n("Use &Random Play"));
m_randomPlayAction->setIcon(KIcon("media-playlist-shuffle"));
m_randomPlayAction->setIcon(KIcon( QLatin1String( "media-playlist-shuffle" )));
m_randomPlayAction->setActionGroup(randomPlayGroup);
actionMenu->addAction(m_randomPlayAction);
act = collection->add<KToggleAction>("albumRandomPlay");
act->setText(i18n("Use &Album Random Play"));
act->setIcon(KIcon("media-playlist-shuffle"));
act->setIcon(KIcon( QLatin1String( "media-playlist-shuffle" )));
act->setActionGroup(randomPlayGroup);
connect(act, SIGNAL(triggered(bool)), SLOT(slotCheckAlbumNextAction(bool)));
actionMenu->addAction(act);
act = collection->addAction("removeFromPlaylist", clear, SLOT(clear()));
act->setText(i18n("Remove From Playlist"));
act->setIcon(KIcon("list-remove"));
act->setIcon(KIcon( QLatin1String( "list-remove" )));
act = collection->add<KToggleAction>("crossfadeTracks");
act->setText(i18n("Crossfade Between Tracks"));
......@@ -221,23 +221,23 @@ void JuK::setupActions()
act = collection->addAction("play", m_player, SLOT(play()));
act->setText(i18n("&Play"));
act->setIcon(KIcon("media-playback-start"));
act->setIcon(KIcon( QLatin1String( "media-playback-start" )));
act = collection->addAction("pause", m_player, SLOT(pause()));
act->setText(i18n("P&ause"));
act->setIcon(KIcon("media-playback-pause"));
act->setIcon(KIcon( QLatin1String( "media-playback-pause" )));
act = collection->addAction("stop", m_player, SLOT(stop()));
act->setText(i18n("&Stop"));
act->setIcon(KIcon("media-playback-stop"));
act->setIcon(KIcon( QLatin1String( "media-playback-stop" )));
act = new KToolBarPopupAction(KIcon("media-skip-backward"), i18nc("previous track", "Previous"), collection);
act = new KToolBarPopupAction(KIcon( QLatin1String( "media-skip-backward") ), i18nc("previous track", "Previous" ), collection);
collection->addAction("back", act);
connect(act, SIGNAL(triggered(bool)), m_player, SLOT(back()));
act = collection->addAction("forward", m_player, SLOT(forward()));
act->setText(i18nc("next track", "&Next"));
act->setIcon(KIcon("media-skip-forward"));
act->setIcon(KIcon( QLatin1String( "media-skip-forward" )));
act = collection->addAction("loopPlaylist");
act->setText(i18n("&Loop Playlist"));
......@@ -250,27 +250,27 @@ void JuK::setupActions()
act = collection->addAction("mute", m_player, SLOT(mute()));
act->setText(i18nc("silence playback", "Mute"));
act->setIcon(KIcon("audio-volume-muted"));
act->setIcon(KIcon( QLatin1String( "audio-volume-muted" )));
act = collection->addAction("volumeUp", m_player, SLOT(volumeUp()));
act->setText(i18n("Volume Up"));
act->setIcon(KIcon("audio-volume-high"));
act->setIcon(KIcon( QLatin1String( "audio-volume-high" )));
act = collection->addAction("volumeDown", m_player, SLOT(volumeDown()));
act->setText(i18n("Volume Down"));
act->setIcon(KIcon("audio-volume-low"));
act->setIcon(KIcon( QLatin1String( "audio-volume-low" )));
act = collection->addAction("playPause", m_player, SLOT(playPause()));
act->setText(i18n("Play / Pause"));
act->setIcon(KIcon("media-playback-start"));
act->setIcon(KIcon( QLatin1String( "media-playback-start" )));
act = collection->addAction("seekForward", m_player, SLOT(seekForward()));
act->setText(i18n("Seek Forward"));
act->setIcon(KIcon("media-seek-forward"));
act->setIcon(KIcon( QLatin1String( "media-seek-forward" )));
act = collection->addAction("seekBack", m_player, SLOT(seekBack()));
act->setText(i18n("Seek Back"));
act->setIcon(KIcon("media-seek-backward"));
act->setIcon(KIcon( QLatin1String( "media-seek-backward" )));
act = collection->addAction("showHide", this, SLOT(slotShowHide()));
act->setText(i18n("Show / Hide"));
......
......@@ -89,7 +89,7 @@ KAction *K3bExporter::action()
if(!m_action && !KStandardDirs::findExe("k3b").isNull()) {
m_action = new PlaylistAction(
i18n("Add Selected Items to Audio or Data CD"),
KIcon("k3b"),
KIcon( QLatin1String( "k3b" )),
"slotExport"
);
m_action->setShortcutConfigurable(false);
......@@ -180,7 +180,7 @@ K3bPlaylistExporter::K3bPlaylistExporter(PlaylistBox *parent) : K3bExporter(0),
KAction *K3bPlaylistExporter::action()
{
if(!KStandardDirs::findExe("k3b").isNull()) {
KAction *action = new KAction(KIcon("k3b"),
KAction *action = new KAction(KIcon( QLatin1String( "k3b" )),
i18n("Add Playlist to Audio or Data CD"),
actions()
);
......
......@@ -57,7 +57,7 @@ public:
FileNameValidator(QObject *parent, const char *name = 0) :
QValidator(parent)
{
setObjectName(name);
setObjectName( QLatin1String( name ) );
}
virtual void fixup(QString &s) const
......@@ -473,11 +473,11 @@ void TagEditor::saveConfig()
void TagEditor::setupActions()
{
KToggleAction *show = new KToggleAction(KIcon("document-properties"), i18n("Show &Tag Editor"), this);
KToggleAction *show = new KToggleAction(KIcon( QLatin1String( "document-properties") ), i18n("Show &Tag Editor" ), this);
ActionCollection::actions()->addAction("showEditor", show);
connect(show, SIGNAL(toggled(bool)), this, SLOT(setShown(bool)));
KAction *act = new KAction(KIcon("document-save"), i18n("&Save"), this);
KAction *act = new KAction(KIcon( QLatin1String( "document-save") ), i18n("&Save" ), this);
ActionCollection::actions()->addAction("saveItem", act);
act->setShortcut(Qt::CTRL + Qt::Key_T);
connect(act, SIGNAL(triggered(bool)), SLOT(slotSave()));
......
......@@ -21,7 +21,7 @@
TagGuesserConfigDlg::TagGuesserConfigDlg(QWidget *parent, const char *name)
: KDialog(parent)
{
setObjectName(name);
setObjectName( QLatin1String( name ) );
setModal(true);
setCaption(i18n("Tag Guesser Configuration"));
setButtons(Ok | Cancel);
......@@ -31,8 +31,8 @@ TagGuesserConfigDlg::TagGuesserConfigDlg(QWidget *parent, const char *name)
m_child = new TagGuesserConfigDlgWidget(this);
setMainWidget(m_child);
m_child->bMoveUp->setIcon(KIcon("arrow-up"));
m_child->bMoveDown->setIcon(KIcon("arrow-down"));
m_child->bMoveUp->setIcon(KIcon( QLatin1String( "arrow-up" )));
m_child->bMoveDown->setIcon(KIcon( QLatin1String( "arrow-down" )));
m_tagSchemeModel = new QStringListModel(m_child->lvSchemes);
m_child->lvSchemes->setModel(m_tagSchemeModel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment