[qet] [3162] Fix segfault on Windows |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3162
Author: scorpio810
Date: 2014-06-22 16:42:30 +0200 (Sun, 22 Jun 2014)
Log Message:
-----------
Fix segfault on Windows
Modified Paths:
--------------
trunk/sources/elementspanel.cpp
trunk/sources/qetapp.cpp
Modified: trunk/sources/elementspanel.cpp
===================================================================
--- trunk/sources/elementspanel.cpp 2014-06-22 12:48:19 UTC (rev 3161)
+++ trunk/sources/elementspanel.cpp 2014-06-22 14:42:30 UTC (rev 3162)
@@ -132,11 +132,8 @@
@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()) {
return(QETApp::collectionItem(selected_location));
@@ -205,16 +202,6 @@
}
#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
Modified: trunk/sources/qetapp.cpp
===================================================================
--- trunk/sources/qetapp.cpp 2014-06-22 12:48:19 UTC (rev 3161)
+++ trunk/sources/qetapp.cpp 2014-06-22 14:42:30 UTC (rev 3162)
@@ -954,12 +954,12 @@
"}"
);
} 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;"