Commit caf582f3 authored by Christoph Cullmann's avatar Christoph Cullmann

less public API

parent dac9f442
......@@ -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()) {
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment