mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
NameList widget : add a combo box for easily paste texts, like the variables for title block.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5687 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -16,11 +16,16 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "elementscategoryeditor.h"
|
||||
#include "nameslistwidget.h"
|
||||
#include "qet.h"
|
||||
#include "qfilenameedit.h"
|
||||
#include "qetmessagebox.h"
|
||||
#include "elementcollectionhandler.h"
|
||||
#include "namelistwidget.h"
|
||||
|
||||
#include <QDialogButtonBox>
|
||||
#include <QVBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QHBoxLayout>
|
||||
|
||||
/**
|
||||
* @brief ElementsCategoryEditor::ElementsCategoryEditor
|
||||
@@ -102,7 +107,7 @@ void ElementsCategoryEditor::setUpWidget()
|
||||
QVBoxLayout *editor_layout = new QVBoxLayout();
|
||||
setLayout(editor_layout);
|
||||
|
||||
m_names_list = new NamesListWidget();
|
||||
m_names_list = new NameListWidget(this);
|
||||
m_file_name = new QLabel(tr("Nom interne : "));
|
||||
m_file_line_edit = new QFileNameEdit();
|
||||
|
||||
@@ -130,7 +135,7 @@ void ElementsCategoryEditor::acceptCreation()
|
||||
}
|
||||
|
||||
//there must be at least one name
|
||||
if (!m_names_list -> checkOneName()) {
|
||||
if (m_names_list->isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -181,7 +186,7 @@ void ElementsCategoryEditor::acceptUpdate()
|
||||
}
|
||||
|
||||
//There must be at least one name
|
||||
if (!m_names_list -> checkOneName()) {
|
||||
if (m_names_list->isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user