]> git.lyx.org Git - lyx.git/commitdiff
Whitespace
authorGuillaume Munch <gm@lyx.org>
Fri, 29 Apr 2016 21:29:27 +0000 (22:29 +0100)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:42 +0000 (17:55 -0400)
src/frontends/qt4/TocWidget.cpp
src/frontends/qt4/TocWidget.h

index bb15f31e2b71bf9ca7dca027c130aa4267856c0f..24bc43377602c1a9685c97ce426dc8b59065e53e 100644 (file)
@@ -86,7 +86,7 @@ TocWidget::TocWidget(GuiView & gui_view, QWidget * parent)
                this, SLOT(showContextMenu(const QPoint &)));
        connect(tocTV, SIGNAL(customContextMenuRequested(const QPoint &)),
                this, SLOT(showContextMenu(const QPoint &)));
-       connect(filterLE, SIGNAL(textEdited(QString)), 
+       connect(filterLE, SIGNAL(textEdited(QString)),
                this, SLOT(filterContents()));
 
        init(QString());
@@ -98,7 +98,7 @@ void TocWidget::showContextMenu(const QPoint & pos)
        std::string name = "context-toc-" + fromqstr(current_type_);
        QMenu * menu = guiApp->menus().menu(toqstr(name), gui_view_);
        if (!menu)
-               return; 
+               return;
        menu->exec(mapToGlobal(pos));
 }
 
@@ -109,9 +109,9 @@ Inset * TocWidget::itemInset() const
        TocItem const & item =
                gui_view_.tocModels().currentItem(current_type_, index);
        DocIterator const & dit = item.dit();
-       
+
        Inset * inset = 0;
-       if (current_type_ == "label" 
+       if (current_type_ == "label"
                  || current_type_ == "graphics"
                  || current_type_ == "citation"
                  || current_type_ == "child")
@@ -120,7 +120,7 @@ Inset * TocWidget::itemInset() const
        else if (current_type_ == "branch"
                         || current_type_ == "index"
                         || current_type_ == "change"
-                        || current_type_ == "table" 
+                        || current_type_ == "table"
                     || current_type_ == "listing"
                     || current_type_ == "figure")
                inset = &dit.inset();
@@ -415,7 +415,7 @@ void TocWidget::updateViewForce()
        tocTV->setEnabled(false);
        tocTV->setUpdatesEnabled(false);
 
-       QAbstractItemModel * toc_model = 
+       QAbstractItemModel * toc_model =
                        gui_view_.tocModels().model(current_type_);
        if (tocTV->model() != toc_model) {
                tocTV->setModel(toc_model);
@@ -470,7 +470,7 @@ void TocWidget::filterContents()
                                filterLE->text(), Qt::CaseInsensitive);
                tocTV->setRowHidden(index.row(), index.parent(), !matches);
        }
-       // recursively unhide parents of unhidden children 
+       // recursively unhide parents of unhidden children
        for (int i = size - 1; i >= 0; i--) {
                QModelIndex index = indices[i];
                if (!tocTV->isRowHidden(index.row(), index.parent())
index 608920a42ad3f7b7f03519895e6686c1930d9301..962c21a2387a2d2a63b94ffbf57903e4cc3fbb60 100644 (file)
@@ -74,15 +74,15 @@ private:
        ///
        void enableControls(bool enable = true);
        ///
-       bool canOutline() 
+       bool canOutline()
                { return current_type_ == "tableofcontents"; }
        /// It is not possible to have synchronous navigation in a correct
        /// and efficient way with the label and change type because Toc::item()
        /// does a linear search. Even when fixed, it might even not be desirable
        /// to do so if we want to support drag&drop of labels and references.
-       bool canNavigate() 
+       bool canNavigate()
                { return current_type_ != "label" && current_type_ != "change"; }
-       /// 
+       ///
        bool isSortable()
                { return current_type_ != "tableofcontents"; }
        ///