mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Rapatriement de la branche 0.2 dans le trunk
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@558 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2006-2008 Xavier Guerrin
|
||||
Copyright 2006-2009 Xavier Guerrin
|
||||
This file is part of QElectroTech.
|
||||
|
||||
QElectroTech is free software: you can redistribute it and/or modify
|
||||
@@ -63,8 +63,8 @@ bool NamesListWidget::checkOneName() {
|
||||
if (!hash_names.count()) {
|
||||
QMessageBox::critical(
|
||||
this,
|
||||
tr("Il doit y avoir au moins un nom."),
|
||||
tr("Vous devez entrer au moins un nom.")
|
||||
tr("Il doit y avoir au moins un nom.", "message box title"),
|
||||
tr("Vous devez entrer au moins un nom.", "message box content")
|
||||
);
|
||||
return(false);
|
||||
}
|
||||
@@ -141,6 +141,7 @@ void NamesListWidget::setReadOnly(bool ro) {
|
||||
if (!read_only) flags |= Qt::ItemIsEditable;
|
||||
tree_names -> topLevelItem(i) -> setFlags(flags);
|
||||
}
|
||||
button_add_line -> setEnabled(!read_only);
|
||||
}
|
||||
|
||||
/// @return true si la liste de noms est en lecture seule, false sinon
|
||||
|
||||
Reference in New Issue
Block a user