]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/PanelStack.cpp
Fix the tab ordering of GuiDocument components.
[lyx.git] / src / frontends / qt4 / PanelStack.cpp
index 1863040bd19d107b3dda132e1a2e353dc1ec0a89..68fb07e73c4f2fb9a1c2931cb30cae16727e8416 100644 (file)
@@ -49,9 +49,9 @@ PanelStack::PanelStack(QWidget * parent)
        : QWidget(parent)
 {
        delay_search_ = new QTimer(this);
+       search_ = new FancyLineEdit(this);
        list_ = new QTreeWidget(this);
        stack_ = new QStackedWidget(this);
-       search_ = new FancyLineEdit(this);
 
        // Configure the timer
        delay_search_->setSingleShot(true);
@@ -75,10 +75,12 @@ PanelStack::PanelStack(QWidget * parent)
        search_->setPlaceholderText(qt_("Search"));
 #endif
 
+#if QT_VERSION >= 0x040600
        search_->setButtonPixmap(FancyLineEdit::Right, getPixmap("images/", "editclear", "png"));
        search_->setButtonVisible(FancyLineEdit::Right, true);
        search_->setButtonToolTip(FancyLineEdit::Right, qt_("Clear text"));
        search_->setAutoHideButton(FancyLineEdit::Right, true);
+#endif
        connect(search_, SIGNAL(rightButtonClicked()), this, SLOT(resetSearch()));
        connect(search_, SIGNAL(textEdited(QString)), this, SLOT(filterChanged(QString)));