mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
La couleur des textes est desormais forcee a etre noire
Utilisation de boutons radios dans le menu Fenetres git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@201 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -841,11 +841,13 @@ void QETDiagramEditor::slot_updateWindowsMenu() {
|
||||
prev_window -> setEnabled(windows.count() > 1);
|
||||
|
||||
if (!windows.isEmpty()) windows_menu -> addSeparator();
|
||||
QActionGroup *windows_actions = new QActionGroup(this);
|
||||
for (int i = 0 ; i < windows.size() ; ++ i) {
|
||||
DiagramView *dv = qobject_cast<DiagramView *>(windows.at(i));
|
||||
if (!dv) continue;
|
||||
QString dv_title = dv -> windowTitle().left(dv -> windowTitle().length() - 3);
|
||||
QAction *action = windows_menu -> addAction(dv_title);
|
||||
windows_actions -> addAction(action);
|
||||
action -> setStatusTip(tr("Active la fen\352tre ") + dv_title);
|
||||
action -> setCheckable(true);
|
||||
action -> setChecked(dv == currentDiagram());
|
||||
|
||||
Reference in New Issue
Block a user