]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/PanelStack.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / PanelStack.cpp
index 13e310051339363993f6c13e4d4593954c1d902b..feb80b78be8225c684f0a8cd9f679cd575d95ed4 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "qt_helpers.h"
 
-#include "debug.h"
+#include "support/debug.h"
 
 #include <QFontMetrics>
 #include <QStackedWidget>
@@ -26,9 +26,7 @@
 
 #include <iostream>
 
-
-using std::endl;
-using std::cout;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
@@ -41,11 +39,12 @@ PanelStack::PanelStack(QWidget * parent)
        stack_ = new QStackedWidget(this);
 
        list_->setColumnCount(1);
+       list_->setRootIsDecorated(false);
        // Hide the pointless list header
        list_->header()->hide();
-//     QStringList HeaderLabels;
-//     HeaderLabels << QString("Category");
-//     list_->setHeaderLabels(HeaderLabels);
+//     QStringList HeaderLabels;
+//     HeaderLabels << QString("Category");
+//     list_->setHeaderLabels(HeaderLabels);
 
        connect(list_, SIGNAL(currentItemChanged (QTreeWidgetItem*, QTreeWidgetItem*)),
                this, SLOT(switchPanel(QTreeWidgetItem *, QTreeWidgetItem*)));
@@ -61,7 +60,7 @@ void PanelStack::addCategory(docstring const & n, docstring const & parent)
        QTreeWidgetItem * item = 0;
        QString const name = toqstr(n);
 
-       LYXERR(Debug::GUI) << "addCategory n= " << to_utf8(n) << "   parent= " << endl;
+       LYXERR(Debug::GUI, "addCategory n= " << to_utf8(n) << "   parent= ");
 
        int depth = 1;