[qet] [2085] Select methode to disable action Htmleditor if conductor is select |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2085
Author: scorpio810
Date: 2013-04-02 12:56:07 +0200 (Tue, 02 Apr 2013)
Log Message:
-----------
Select methode to disable action Htmleditor if conductor is select
Modified Paths:
--------------
trunk/sources/qetdiagrameditor.cpp
Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp 2013-04-01 23:40:03 UTC (rev 2084)
+++ trunk/sources/qetdiagrameditor.cpp 2013-04-02 10:56:07 UTC (rev 2085)
@@ -332,7 +332,6 @@
// traitements speciaux
add_text -> setCheckable(true);
- add_edittext -> setCheckable(true);
windowed_view_mode -> setCheckable(true);
tabbed_view_mode -> setCheckable(true);
mode_selection -> setCheckable(true);
@@ -1137,7 +1136,6 @@
zoom_reset -> setEnabled(opened_diagram);
infos_diagram -> setEnabled(opened_diagram);
add_text -> setEnabled(editable_diagram);
- add_edittext -> setEnabled(editable_diagram);
add_column -> setEnabled(editable_diagram);
remove_column -> setEnabled(editable_diagram);
add_row -> setEnabled(editable_diagram);
@@ -1189,6 +1187,7 @@
// actions ayant besoin de textes selectionnes
bool selected_texts = dv ? (dv -> diagram() -> selectedTexts().count()) : 0;
rotate_texts -> setEnabled(editable_diagram && selected_texts);
+ add_edittext ->setDisabled(selected_conductors_count);
}