diff --git a/src/Gui/SelectionView.cpp b/src/Gui/SelectionView.cpp index ed8fa4483..2a1be14fd 100644 --- a/src/Gui/SelectionView.cpp +++ b/src/Gui/SelectionView.cpp @@ -58,7 +58,9 @@ SelectionView::SelectionView(Gui::Document* pcDocument, QWidget *parent) pLayout->setMargin ( 0 ); QLineEdit* searchBox = new QLineEdit(this); +#if QT_VERSION >= 0x040700 searchBox->setPlaceholderText( tr( "Search" ) ); +#endif searchBox->setToolTip( tr( "Searches object labels" ) ); pLayout->addWidget( searchBox ); QHBoxLayout* llayout = new QHBoxLayout(searchBox); diff --git a/src/Mod/Part/App/OCCError.h b/src/Mod/Part/App/OCCError.h index 0cb1e4a61..183b225b8 100644 --- a/src/Mod/Part/App/OCCError.h +++ b/src/Mod/Part/App/OCCError.h @@ -27,7 +27,9 @@ # include # include # include +# if OCC_VERSION_HEX >= 0x060500 # include +# endif # include # include # include