[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/lib/kofficecore
From: David Faure <faure () kde ! org>
Date: 2006-02-09 14:49:52
Message-ID: 1139496592.879922.7161.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 507559 by dfaure:
Small code cleanup, no-op
M +10 -7 koMainWindow.cc
--- trunk/koffice/lib/kofficecore/koMainWindow.cc #507558:507559
@@ -63,9 +63,16 @@
{
public:
KoPartManager( QWidget * parent, const char * name = 0L )
- : KParts::PartManager( parent, name ) {}
- KoPartManager( QWidget *topLevel, QObject *parent, const char *name = 0L )
- : KParts::PartManager( topLevel, parent, name ) {}
+ : KParts::PartManager( parent, name )
+ {
+ setSelectionPolicy( KParts::PartManager::TriState );
+ setAllowNestedParts( true );
+ setIgnoreScrollBars( true );
+ // Allow right-click on embedded objects (without activating them)
+ // But beware: this means right-click on parent, from embedded object,
+ // doesn't make the parent active first...
+ setActivationButtonMask( Qt::LeftButton | Qt::MidButton );
+ }
virtual bool eventFilter( QObject *obj, QEvent *ev )
{
if ( !obj->isWidgetType() || ::qt_cast<KoFrame *>( obj ) )
@@ -183,10 +190,6 @@
d = new KoMainWindowPrivate;
d->m_manager = new KoPartManager( this );
- d->m_manager->setSelectionPolicy( KParts::PartManager::TriState );
- d->m_manager->setAllowNestedParts( true );
- d->m_manager->setIgnoreScrollBars( true );
- d->m_manager->setActivationButtonMask( Qt::LeftButton | Qt::MidButton );
connect( d->m_manager, SIGNAL( activePartChanged( KParts::Part * ) ),
this, SLOT( slotActivePartChanged( KParts::Part * ) ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic