[qet] [2524] minor change to slot_UpdateComplexAction |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2524
Author: blacksun
Date: 2013-09-12 15:42:31 +0200 (Thu, 12 Sep 2013)
Log Message:
-----------
minor change to slot_UpdateComplexAction
Modified Paths:
--------------
trunk/sources/qetdiagrameditor.cpp
Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp 2013-09-11 22:03:17 UTC (rev 2523)
+++ trunk/sources/qetdiagrameditor.cpp 2013-09-12 13:42:31 UTC (rev 2524)
@@ -1213,29 +1213,25 @@
if (selected_editable == 1) {
edit_selection -> setEnabled(true);
//edit element
- if (selected_elements_count == 1) {
+ if (selected_elements_count) {
edit_selection -> setText(tr("\311diter l'\351lement", "edit element"));
edit_selection -> setIcon(QET::Icons::ElementEdit);
- edit_selection -> setIconVisibleInMenu(true);
}
//edit text field
- else if (selected_texts == 1) {
+ else if (selected_texts) {
edit_selection -> setText(tr("\311diter le champ de texte", "edit text field"));
edit_selection -> setIcon(QET::Icons::EditText);
- edit_selection -> setIconVisibleInMenu(true);
}
//edit image
else if (selected_image) {
edit_selection -> setText(tr("\311diter l'image", "edit image"));
edit_selection -> setIcon(QET::Icons::resize_image);
- edit_selection -> setIconVisibleInMenu(true);
}
}
//not an editable item
else {
edit_selection -> setText(tr("\311diter l'objet s\351lectionn\351", "edit selected item"));
edit_selection -> setIcon(QET::Icons::ElementEdit);
- edit_selection -> setIconVisibleInMenu(true);
edit_selection -> setEnabled(false);
}
}