Commit 73e8483f authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

svn path=/trunk/KDE/kdemultimedia/juk/; revision=1178203
parent 6018c391
......@@ -65,7 +65,7 @@ CoverDialog::CoverDialog(QWidget *parent) :
{
setupUi(this);
setObjectName("juk_cover_dialog");
setObjectName( QLatin1String("juk_cover_dialog" ));
m_covers->setResizeMode(Q3IconView::Adjust);
m_covers->setGridX(140);
......
......@@ -32,7 +32,7 @@
DBusCollectionProxy::DBusCollectionProxy (QObject *parent, PlaylistCollection *collection) :
QObject(parent), m_collection(collection)
{
setObjectName("DBusCollectionProxy");
setObjectName( QLatin1String("DBusCollectionProxy" ));
new CollectionAdaptor(this);
QDBusConnection::sessionBus().registerObject("/Collection",this);
......
......@@ -35,7 +35,7 @@ DeleteWidget::DeleteWidget(QWidget *parent)
{
m_ui->setupUi(this);
setObjectName("delete_dialog_widget");
setObjectName( QLatin1String("delete_dialog_widget" ));
KConfigGroup messageGroup(KGlobal::config()->group("FileRemover"));
......@@ -82,7 +82,7 @@ DeleteDialog::DeleteDialog(QWidget *parent) :
KDialog(parent, Qt::WStyle_DialogBorder),
m_trashGuiItem(i18n("&Send to Trash"), "user-trash-full")
{
setObjectName("delete_dialog");
setObjectName( QLatin1String("delete_dialog" ));
setModal(true);
setCaption(i18n("About to delete selected files"));
setButtons(Ok | Cancel);
......
......@@ -27,7 +27,7 @@ ExampleOptions::ExampleOptions(QWidget *parent) :
{
setupUi(this);
setObjectName("example options widget");
setObjectName( QLatin1String("example options widget" ));
}
void ExampleOptions::exampleSelectionChanged()
......@@ -51,7 +51,7 @@ void ExampleOptions::exampleFileChanged()
ExampleOptionsDialog::ExampleOptionsDialog(QWidget *parent) :
QDialog(parent)
{
setObjectName("example options dialog");
setObjectName( QLatin1String("example options dialog" ));
setWindowTitle(i18n("JuK"));
QVBoxLayout *l = new QVBoxLayout(this);
......
......@@ -492,13 +492,13 @@ void FileRenamerWidget::createTagRows()
m_folderSwitches.reserve(categoryOrder.count() - 1);
mapper = new QSignalMapper(this);
mapper->setObjectName("signal mapper");
mapper->setObjectName( QLatin1String("signal mapper" ));
toggleMapper = new QSignalMapper(this);
toggleMapper->setObjectName("toggle mapper");
toggleMapper->setObjectName( QLatin1String("toggle mapper" ));
upMapper = new QSignalMapper(this);
upMapper->setObjectName("up button mapper");
upMapper->setObjectName( QLatin1String("up button mapper" ));
downMapper = new QSignalMapper(this);
downMapper->setObjectName("down button mapper");
downMapper->setObjectName( QLatin1String("down button mapper" ));
connect(mapper, SIGNAL(mapped(int)), SLOT(showCategoryOption(int)));
connect(toggleMapper, SIGNAL(mapped(int)), SLOT(slotRemoveRow(int)));
......
......@@ -23,7 +23,7 @@ FileRenamerConfigDlg::FileRenamerConfigDlg(QWidget *parent) :
KDialog(parent),
m_renamerWidget(new FileRenamerWidget(this))
{
setObjectName("file renamer dialog");
setObjectName( QLatin1String("file renamer dialog" ));
setModal(true);
setCaption(i18n("File Renamer Options"));
setButtons(Ok | Cancel);
......
......@@ -317,7 +317,7 @@ void JuK::slotSetupSystemTray()
{
if(m_toggleSystemTrayAction && m_toggleSystemTrayAction->isChecked()) {
m_systemTray = new SystemTray(m_player, this);
m_systemTray->setObjectName("systemTray");
m_systemTray->setObjectName( QLatin1String("systemTray" ));
m_toggleDockOnCloseAction->setEnabled(true);
m_togglePopupsAction->setEnabled(true);
......
......@@ -68,7 +68,7 @@ NowPlaying::NowPlaying(QWidget *parent, PlaylistCollection *collection) :
m_collectionListObserver(this, CollectionList::instance()),
m_collection(collection)
{
setObjectName("NowPlaying");
setObjectName( QLatin1String("NowPlaying" ));
QHBoxLayout *layout = new QHBoxLayout(this);
setLayout(layout);
......@@ -124,7 +124,7 @@ CoverItem::CoverItem(NowPlaying *parent) :
QLabel(parent),
NowPlayingItem(parent)
{
setObjectName("CoverItem");
setObjectName( QLatin1String("CoverItem" ));
setFixedHeight(parent->height() - parent->layout()->margin() * 2);
setMargin(1);
setAcceptDrops(true);
......@@ -241,7 +241,7 @@ TrackItem::TrackItem(NowPlaying *parent) :
QWidget(parent),
NowPlayingItem(parent)
{
setObjectName("TrackItem");
setObjectName( QLatin1String("TrackItem" ));
setFixedHeight(parent->height() - parent->layout()->margin() * 2);
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
......
......@@ -841,7 +841,7 @@ PlaylistCollection::ActionHandler::ActionHandler(PlaylistCollection *collection)
QObject(0),
m_collection(collection)
{
setObjectName("ActionHandler");
setObjectName( QLatin1String("ActionHandler" ));
KActionMenu *menu;
......
......@@ -166,7 +166,7 @@ void PlaylistSplitter::setupLayout()
// Create a splitter to go between the playlists and the editor.
QSplitter *editorSplitter = new QSplitter(Qt::Vertical, this);
editorSplitter->setObjectName("editorSplitter");
editorSplitter->setObjectName( QLatin1String("editorSplitter" ));
// Create the playlist and the editor.
......@@ -176,13 +176,13 @@ void PlaylistSplitter::setupLayout()
topLayout->setSpacing(0);
m_playlistStack = new QStackedWidget(top);
m_playlistStack->setObjectName("playlistStack");
m_playlistStack->setObjectName( QLatin1String("playlistStack" ));
m_playlistStack->installEventFilter(this);
m_playlistStack->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
m_playlistStack->hide(); // Will be shown after CollectionList filled.
m_editor = new TagEditor(editorSplitter);
m_editor->setObjectName("TagEditor");
m_editor->setObjectName( QLatin1String("TagEditor" ));
// Make the editor as small as possible (or at least as small as recommended)
......@@ -192,7 +192,7 @@ void PlaylistSplitter::setupLayout()
// Create the PlaylistBox
m_playlistBox = new PlaylistBox(m_player, this, m_playlistStack);
m_playlistBox->setObjectName( "playlistBox" );
m_playlistBox->setObjectName( QLatin1String( "playlistBox" ) );
connect(m_playlistBox->object(), SIGNAL(signalSelectedItemsChanged()),
this, SLOT(slotPlaylistSelectionChanged()));
......
......@@ -53,7 +53,7 @@ SearchLine::SearchLine(QWidget *parent, bool simple)
if(!m_simple) {
m_searchFieldsBox = new KComboBox(this);
layout->addWidget(m_searchFieldsBox);
m_searchFieldsBox->setObjectName( "searchFields" );
m_searchFieldsBox->setObjectName( QLatin1String( "searchFields" ) );
connect(m_searchFieldsBox, SIGNAL(activated(int)),
this, SIGNAL(signalQueryChanged()));
}
......
......@@ -151,7 +151,7 @@ QWidget *SliderAction::createToolBarWidget( QToolBar * parent )
if(parent) {
QWidget *base = new QWidget(parent);
base->setBackgroundRole(parent->backgroundRole());
base->setObjectName("kde toolbar widget");
base->setObjectName( QLatin1String("kde toolbar widget" ));
KToolBar *toolBar = dynamic_cast<KToolBar *>(parent);
......@@ -170,7 +170,7 @@ QWidget *SliderAction::createToolBarWidget( QToolBar * parent )
m_layout->addItem(new QSpacerItem(20, 1));
m_trackPositionSlider = new Phonon::SeekSlider(base);
m_trackPositionSlider->setObjectName("trackPositionSlider");
m_trackPositionSlider->setObjectName( QLatin1String("trackPositionSlider" ));
m_trackPositionSlider->setOrientation(orientation);
//m_trackPositionSlider->setToolTip( i18n("Track position"));
m_layout->addWidget(m_trackPositionSlider);
......@@ -180,13 +180,13 @@ QWidget *SliderAction::createToolBarWidget( QToolBar * parent )
m_layout->addItem(new QSpacerItem(10, 1));
m_volumeSlider = new VolumeSlider(orientation, base);
m_volumeSlider->setObjectName("volumeSlider");
m_volumeSlider->setObjectName( QLatin1String("volumeSlider" ));
m_layout->addWidget(m_volumeSlider);
connect(parent, SIGNAL(iconSizeChanged(QSize)), m_volumeSlider,
SLOT(setIconSize(QSize)));
m_volumeSlider->setObjectName("kde toolbar widget");
m_trackPositionSlider->setObjectName("kde toolbar widget");
m_volumeSlider->setObjectName( QLatin1String("kde toolbar widget" ));
m_trackPositionSlider->setObjectName( QLatin1String("kde toolbar widget" ));
m_layout->setStretchFactor(m_trackPositionSlider, 4);
m_layout->setStretchFactor(m_volumeSlider, 1);
......@@ -232,7 +232,7 @@ QWidget *SliderAction::createWidget(QWidget *parent) // virtual -- used by base
if(parent) {
QWidget *base = new QWidget(parent);
base->setBackgroundRole(parent->backgroundRole());
base->setObjectName("kde toolbar widget");
base->setObjectName( QLatin1String("kde toolbar widget" ));
KToolBar *toolBar = dynamic_cast<KToolBar *>(parent);
......@@ -253,7 +253,7 @@ QWidget *SliderAction::createWidget(QWidget *parent) // virtual -- used by base
m_layout->addItem(new QSpacerItem(20, 1));
m_trackPositionSlider = new Phonon::SeekSlider(base);
m_trackPositionSlider->setObjectName("trackPositionSlider");
m_trackPositionSlider->setObjectName( QLatin1String("trackPositionSlider" ));
//m_trackPositionSlider->setToolTip( i18n("Track position"));
m_layout->addWidget(m_trackPositionSlider);
connect(parent, SIGNAL(iconSizeChanged(QSize)), m_trackPositionSlider,
......@@ -262,13 +262,13 @@ QWidget *SliderAction::createWidget(QWidget *parent) // virtual -- used by base
m_layout->addItem(new QSpacerItem(10, 1));
m_volumeSlider = new VolumeSlider(orientation, base);
m_volumeSlider->setObjectName("volumeSlider");
m_volumeSlider->setObjectName( QLatin1String("volumeSlider" ));
m_layout->addWidget(m_volumeSlider);
connect(parent, SIGNAL(iconSizeChanged(QSize)), m_volumeSlider,
SLOT(setIconSize(QSize)));
m_volumeSlider->setObjectName("kde toolbar widget");
m_trackPositionSlider->setObjectName("kde toolbar widget");
m_volumeSlider->setObjectName( QLatin1String("kde toolbar widget" ));
m_trackPositionSlider->setObjectName( QLatin1String("kde toolbar widget" ));
m_layout->setStretchFactor(m_trackPositionSlider, 4);
m_layout->setStretchFactor(m_volumeSlider, 1);
......
......@@ -74,7 +74,7 @@ void SplashScreen::update()
SplashScreen::SplashScreen() : QLabel(0, Qt::WStyle_Splash)
{
setObjectName("splashScreen");
setObjectName( QLatin1String("splashScreen" ));
QPixmap background = UserIcon("splash");
resize(background.size());
......
......@@ -53,7 +53,7 @@ StatusLabel::StatusLabel(PlaylistInterface *playlist, QWidget *parent) :
QHBoxLayout *trackAndPlaylistLayout = new QHBoxLayout( trackAndPlaylist );
trackAndPlaylistLayout->setMargin( trackAndPlaylist->lineWidth() * 2 );
trackAndPlaylistLayout->setSpacing( 5 );
trackAndPlaylistLayout->setObjectName( "trackAndPlaylistLayout");
trackAndPlaylistLayout->setObjectName( QLatin1String( "trackAndPlaylistLayout" ));
trackAndPlaylistLayout->addSpacing(5);
m_playlistLabel = new KSqueezedTextLabel(trackAndPlaylist);
......
......@@ -202,7 +202,7 @@ SystemTray::SystemTray(PlayerManager *player, QWidget *parent) :
cm->addAction( action("togglePopups") );
m_fadeTimer = new QTimer(this);
m_fadeTimer->setObjectName("systrayFadeTimer");
m_fadeTimer->setObjectName( QLatin1String("systrayFadeTimer" ));
connect(m_fadeTimer, SIGNAL(timeout()), SLOT(slotNextStep()));
// Handle wheel events
......@@ -424,11 +424,11 @@ void SystemTray::createButtonBox(QWidget *parent)
buttonBox->setSpacing(3);
QPushButton *forwardButton = new QPushButton(m_forwardPix, 0, buttonBox);
forwardButton->setObjectName("popup_forward");
forwardButton->setObjectName( QLatin1String("popup_forward" ));
connect(forwardButton, SIGNAL(clicked()), SLOT(slotForward()));
QPushButton *backButton = new QPushButton(m_backPix, 0, buttonBox);
backButton->setObjectName("popup_back");
backButton->setObjectName( QLatin1String("popup_back" ));
connect(backButton, SIGNAL(clicked()), SLOT(slotBack()));
}
......
......@@ -513,21 +513,21 @@ void TagEditor::setupLayout()
{ // just for organization
m_artistNameBox = new KComboBox( true, this );
m_artistNameBox->setObjectName( "artistNameBox" );
m_artistNameBox->setObjectName( QLatin1String( "artistNameBox" ) );
m_artistNameBox->setCompletionMode(KGlobalSettings::CompletionAuto);
addItem(i18n("&Artist name:"), m_artistNameBox, leftColumnLayout, "view-media-artist");
m_trackNameBox = new KLineEdit(this);
m_trackNameBox->setObjectName( "trackNameBox" );
m_trackNameBox->setObjectName( QLatin1String( "trackNameBox" ) );
addItem(i18n("&Track name:"), m_trackNameBox, leftColumnLayout, "media-playback-start");
m_albumNameBox = new KComboBox( true, this );
m_albumNameBox->setObjectName( "albumNameBox" );
m_albumNameBox->setObjectName( QLatin1String( "albumNameBox" ) );
m_albumNameBox->setCompletionMode(KGlobalSettings::CompletionAuto);
addItem(i18n("Album &name:"), m_albumNameBox, leftColumnLayout, "media-optical-audio");
m_genreBox = new KComboBox( true, this );
m_genreBox->setObjectName( "genreBox" );
m_genreBox->setObjectName( QLatin1String( "genreBox" ) );
addItem(i18n("&Genre:"), m_genreBox, leftColumnLayout, "help-about");
// this fills the space at the bottem of the left column
......@@ -544,7 +544,7 @@ void TagEditor::setupLayout()
fileNameLayout->setSpacing(horizontalSpacing);
m_fileNameBox = new KLineEdit(this);
m_fileNameBox->setObjectName( "fileNameBox" );
m_fileNameBox->setObjectName( QLatin1String( "fileNameBox" ) );
m_fileNameBox->setValidator(new FileNameValidator(m_fileNameBox));
QLabel *fileNameIcon = new QLabel(this);
......@@ -565,12 +565,12 @@ void TagEditor::setupLayout()
horizontalSpacing);
m_trackSpin = new KIntSpinBox(0, 9999, 1, 0, this);
m_trackSpin->setObjectName( "trackSpin" );
m_trackSpin->setObjectName( QLatin1String( "trackSpin" ) );
addItem(i18nc("cd track number", "T&rack:"), m_trackSpin, trackRowLayout);
m_trackSpin->installEventFilter(this);
m_yearSpin = new KIntSpinBox(0, 9999, 1, 0, this );
m_yearSpin->setObjectName( "yearSpin" );
m_yearSpin->setObjectName( QLatin1String( "yearSpin" ) );
addItem(i18n("&Year:"), m_yearSpin, trackRowLayout);
m_yearSpin->installEventFilter(this);
......@@ -584,7 +584,7 @@ void TagEditor::setupLayout()
horizontalSpacing);
m_lengthBox = new KLineEdit(this);
m_lengthBox->setObjectName( "lengthBox" );
m_lengthBox->setObjectName( QLatin1String( "lengthBox" ) );
// addItem(i18n("Length:"), m_lengthBox, trackRowLayout);
m_lengthBox->setMinimumWidth(fontMetrics().width("00:00") + trackRowLayout->spacing());
m_lengthBox->setMaximumWidth(60);
......@@ -593,7 +593,7 @@ void TagEditor::setupLayout()
addItem(i18n("Length:"), m_lengthBox, trackRowLayout);
m_bitrateBox = new KLineEdit(this);
m_bitrateBox->setObjectName( "bitrateBox" );
m_bitrateBox->setObjectName( QLatin1String( "bitrateBox" ) );
// addItem(i18n("Bitrate:"), m_bitrateBox, trackRowLayout);
m_bitrateBox->setMinimumWidth(fontMetrics().width("000") + trackRowLayout->spacing());
m_bitrateBox->setMaximumWidth(60);
......@@ -608,7 +608,7 @@ void TagEditor::setupLayout()
}
m_commentBox = new KTextEdit(this);
m_commentBox->setObjectName( "commentBox" );
m_commentBox->setObjectName( QLatin1String( "commentBox" ) );
addItem(i18n("&Comment:"), m_commentBox, rightColumnLayout, "document-properties");
fileNameLabel->setMinimumHeight(m_trackSpin->height());
......
......@@ -126,7 +126,7 @@ bool TagTransactionManager::undo()
TagTransactionManager::TagTransactionManager(QWidget *parent) : QObject(parent)
{
setObjectName("tagmanager");
setObjectName( QLatin1String("tagmanager" ));
m_manager = this;
}
......
......@@ -41,7 +41,7 @@ WebImageFetcherDialog::WebImageFetcherDialog(const WebImageList &imageList,
m_imageList(imageList),
m_file(file)
{
setObjectName("internet_image_fetcher");
setObjectName( QLatin1String("internet_image_fetcher" ));
setModal(true);
setButtons(Ok | Cancel | User1);
setDefaultButton(NoDefault);
......
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