mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
SVN_SILENT
Nicer way to set the appliaction icon. svn path=/trunk/KDE/kdebase/apps/; revision=750637
This commit is contained in:
parent
6e2f736fb6
commit
25d9e21933
1 changed files with 2 additions and 4 deletions
|
@ -84,10 +84,6 @@ KWrite::KWrite (KTextEditor::Document *doc)
|
|||
|
||||
m_view = qobject_cast<KTextEditor::View*>(doc->createView (this));
|
||||
|
||||
// WORKAROUND: both lines are required; 1st one for about dialog and 2nd one for window
|
||||
QApplication::setWindowIcon(KIcon("accessories-text-editor"));
|
||||
setWindowIcon(KIcon("accessories-text-editor"));
|
||||
|
||||
setCentralWidget(m_view);
|
||||
|
||||
setupActions();
|
||||
|
@ -678,6 +674,8 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
|
|||
|
||||
KApplication a;
|
||||
|
||||
QApplication::setWindowIcon(KIcon("accessories-text-editor"));
|
||||
|
||||
KGlobal::locale()->insertCatalog("katepart4");
|
||||
#if 0
|
||||
DCOPClient *client = kapp->dcopClient();
|
||||
|
|
Loading…
Reference in a new issue