[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/main
From: Jan Hambrecht <jaham () gmx ! net>
Date: 2008-10-31 21:38:58
Message-ID: 1225489138.671666.12432.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 878315 by jaham:
fix changing split view orientation
BUG:173882
M +4 -5 KoMainWindow.cpp
--- trunk/koffice/libs/main/KoMainWindow.cpp #878314:878315
@@ -334,12 +334,11 @@
d->m_orientation = new KSelectAction(KIcon("view_orientation"), i18n("Splitter \
&Orientation"), this);
actionCollection()->addAction("view_splitter_orientation", d->m_orientation);
- connect(d->m_orientation, SIGNAL(triggered(bool)), this, \
SLOT(slotSetOrientation())); + connect(d->m_orientation, SIGNAL(triggered(int)), \
this, SLOT(slotSetOrientation())); QStringList items;
- items << i18n("&Vertical")
- << i18n("&Horizontal");
+ items << i18n("&Horizontal") << i18n("&Vertical");
d->m_orientation->setItems(items);
- d->m_orientation->setCurrentItem(static_cast<int>(d->m_splitter->orientation()));
+ d->m_orientation->setCurrentItem(static_cast<int>(d->m_splitter->orientation()-1));
d->m_splitViewActionList.append(d->m_orientation);
QAction *sep = new QAction(this);
sep->setSeparator(true);
@@ -1561,7 +1560,7 @@
void KoMainWindow::slotSetOrientation()
{
d->m_splitter->setOrientation(static_cast<Qt::Orientation>
- (d->m_orientation->currentItem()));
+ (d->m_orientation->currentItem()+1));
}
void KoMainWindow::slotProgress(int value)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic