[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kparts/tests
From: David Faure <faure () kde ! org>
Date: 2006-02-08 14:24:34
Message-ID: 1139408674.633317.2635.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 507075 by dfaure:
call of overloaded ‘KActionCollection(Shell* const)' is ambiguous
-> that's good, it spots wrong code which creates its own action collection instead \
of using the one provided by the mainwindow ;)
M +2 -1 normalktm.cpp
--- trunk/KDE/kdelibs/kparts/tests/normalktm.cpp #507074:507075
@@ -17,6 +17,7 @@
#include <kmenubar.h>
#include <Q3PopupMenu>
Shell::Shell()
+ : KMainWindow()
{
// We can do this "switch active part" because we have a splitter with
// two items in it.
@@ -28,7 +29,7 @@
Q3PopupMenu * pFile = new Q3PopupMenu( this );
menuBar()->insertItem( "File", pFile );
- KActionCollection * coll = new KActionCollection(this);
+ KActionCollection * coll = actionCollection();
KAction * paLocal = new KAction( "&View local file", 0, this, SLOT( slotFileOpen() \
), coll, "open_local_file" ); // No XML : we need to plug our actions ourselves
paLocal->plug( pFile );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic