diff --git a/sources/elementspanel.cpp b/sources/elementspanel.cpp index e55509253..2a57271ab 100644 --- a/sources/elementspanel.cpp +++ b/sources/elementspanel.cpp @@ -132,10 +132,7 @@ bool ElementsPanel::selectedItemIsWritable() const { @return la collection, la categorie ou l'element selectionne(e) */ ElementsCollectionItem *ElementsPanel::selectedItem() const { - // change color of drag element - if(it_prev_) { - it_prev_->setBackgroundColor(0, Qt::white); - } + ElementsLocation selected_location(selectedElementLocation()); if (!selected_location.isNull()) { @@ -205,16 +202,6 @@ void ElementsPanel::dragMoveEvent(QDragMoveEvent *e) { } #endif - // Change color on mouse over - it_ = itemAt(e -> pos()); - if(it_prev_){ - if(it_ != it_prev_){ - it_->setBackgroundColor(0, Qt::cyan); - it_prev_->setBackgroundColor(0, Qt::white); - it_prev_ = it_; - } - } - else it_prev_ = it_; e -> accept(); /// @todo mettre en valeur le lieu de depot diff --git a/sources/qetapp.cpp b/sources/qetapp.cpp index 11bb1b448..0b3d0c91a 100644 --- a/sources/qetapp.cpp +++ b/sources/qetapp.cpp @@ -954,12 +954,12 @@ void QETApp::useSystemPalette(bool use) { "}" ); } else { - setPalette(style() -> standardPalette()); setStyleSheet( "QTabBar::tab:!selected { background-color: transparent; }" "QMainWindow{ background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(43, 75, 116), stop:1 rgb(197, 245, 254)); }" "QListView{ background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(43, 75, 116), stop:1 rgb(130, 160, 210)); }" "QAbstractScrollArea#mdiarea {" + " background-color -> setPalette(initial_palette_);" " background-image: url(':/ico/mdiarea_bg.png');" " background-repeat: no-repeat;"