mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Fix segfault on Windows
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3162 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user