aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-24 11:08:35 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-24 11:08:35 (GMT)
commitcaf582f34c6348226e1aa45151b4af32396602fa (patch)
treed888b91a871e2cf8ca5cc3fd2e3ac747b0f18856
parentdac9f442b343cc8de427dcd9916f290b908bc5fd (diff)
less public API
-rw-r--r--kate/src/kateviewmanager.cpp15
-rw-r--r--kate/src/kateviewmanager.h7
2 files changed, 5 insertions, 17 deletions
diff --git a/kate/src/kateviewmanager.cpp b/kate/src/kateviewmanager.cpp
index 4de57a8..2b747ea 100644
--- a/kate/src/kateviewmanager.cpp
+++ b/kate/src/kateviewmanager.cpp
@@ -216,10 +216,10 @@ void KateViewManager::setupActions()
void KateViewManager::updateViewSpaceActions()
{
- m_closeView->setEnabled(viewSpaceCount() > 1);
- m_closeOtherViews->setEnabled(viewSpaceCount() > 1);
- goNext->setEnabled(viewSpaceCount() > 1);
- goPrev->setEnabled(viewSpaceCount() > 1);
+ m_closeView->setEnabled(m_viewSpaceList.count() > 1);
+ m_closeOtherViews->setEnabled(m_viewSpaceList.count() > 1);
+ goNext->setEnabled(m_viewSpaceList.count() > 1);
+ goPrev->setEnabled(m_viewSpaceList.count() > 1);
}
void KateViewManager::slotDocumentNew()
@@ -579,7 +579,7 @@ void KateViewManager::setActiveSpace(KateViewSpace *vs)
activeViewSpace()->setActive(false);
}
- vs->setActive(true, viewSpaceCount() > 1);
+ vs->setActive(true, m_viewSpaceList.count() > 1);
}
void KateViewManager::setActiveView(KTextEditor::View *view)
@@ -687,11 +687,6 @@ KTextEditor::View *KateViewManager::activateView(KTextEditor::Document *d)
return activeView();
}
-int KateViewManager::viewSpaceCount() const
-{
- return m_viewSpaceList.count();
-}
-
void KateViewManager::slotViewChanged()
{
if (activeView() && !activeView()->hasFocus()) {
diff --git a/kate/src/kateviewmanager.h b/kate/src/kateviewmanager.h
index d17004e..5d0a6cc 100644
--- a/kate/src/kateviewmanager.h
+++ b/kate/src/kateviewmanager.h
@@ -108,7 +108,6 @@ protected:
QPointer<KTextEditor::View> guiMergedView;
Q_SIGNALS:
- void statChanged();
void viewChanged(KTextEditor::View *);
void viewCreated(KTextEditor::View *);
@@ -142,12 +141,6 @@ public:
KTextEditor::View *activeView();
KateViewSpace *activeViewSpace();
- int viewSpaceCount() const;
-
- bool isViewActivationBlocked() {
- return m_blockViewCreationAndActivation;
- }
-
private Q_SLOTS:
void slotViewChanged();