mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
krazy fixes
svn path=/trunk/KDE/kdebase/apps/; revision=969874
This commit is contained in:
parent
d16434ef01
commit
ec859058c6
3 changed files with 3 additions and 4 deletions
|
@ -84,7 +84,6 @@
|
||||||
#include <QDBusMessage>
|
#include <QDBusMessage>
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QLineEdit>
|
|
||||||
#include <QSplitter>
|
#include <QSplitter>
|
||||||
#include <QDockWidget>
|
#include <QDockWidget>
|
||||||
#include <kacceleratormanager.h>
|
#include <kacceleratormanager.h>
|
||||||
|
@ -1519,7 +1518,7 @@ QString DolphinMainWindow::tabName(const KUrl& url) const
|
||||||
{
|
{
|
||||||
QString name;
|
QString name;
|
||||||
if (url.equals(KUrl("file:///"))) {
|
if (url.equals(KUrl("file:///"))) {
|
||||||
name = "/";
|
name = '/';
|
||||||
} else {
|
} else {
|
||||||
name = url.fileName();
|
name = url.fileName();
|
||||||
if (name.isEmpty()) {
|
if (name.isEmpty()) {
|
||||||
|
|
|
@ -151,7 +151,7 @@ void PhononWidget::showEvent(QShowEvent *event)
|
||||||
|
|
||||||
// Creating an audio player or video player instance might take up to
|
// Creating an audio player or video player instance might take up to
|
||||||
// 2 seconds when doing it the first time. To prevent that the user
|
// 2 seconds when doing it the first time. To prevent that the user
|
||||||
// interface gets noticable blocked, the creation is delayed until
|
// interface gets notizable blocked, the creation is delayed until
|
||||||
// the play button has been pressed (see PhononWidget::play()).
|
// the play button has been pressed (see PhononWidget::play()).
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -143,7 +143,7 @@ bool PreviewsSettingsPage::event(QEvent* event)
|
||||||
if ((event->type() == QEvent::Polish) && !m_initialized) {
|
if ((event->type() == QEvent::Polish) && !m_initialized) {
|
||||||
// load all available plugins for previews
|
// load all available plugins for previews
|
||||||
const KService::List plugins = KServiceTypeTrader::self()->query("ThumbCreator");
|
const KService::List plugins = KServiceTypeTrader::self()->query("ThumbCreator");
|
||||||
foreach (const KSharedPtr<KService> service, plugins) {
|
foreach (const KSharedPtr<KService>& service, plugins) {
|
||||||
QListWidgetItem* item = new QListWidgetItem(service->name(),
|
QListWidgetItem* item = new QListWidgetItem(service->name(),
|
||||||
m_previewPluginsList);
|
m_previewPluginsList);
|
||||||
item->setData(Qt::UserRole, service->desktopEntryName());
|
item->setData(Qt::UserRole, service->desktopEntryName());
|
||||||
|
|
Loading…
Reference in a new issue