mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-12 16:13:13 +02:00
Fixed #951
This commit is contained in:
@@ -145,6 +145,9 @@ GroupObjectDialog::GroupObjectDialog(QWidget *parent) :
|
|||||||
connect( iconView, SIGNAL( delObject_sign() ),
|
connect( iconView, SIGNAL( delObject_sign() ),
|
||||||
this, SLOT( deleteObj() ) );
|
this, SLOT( deleteObj() ) );
|
||||||
|
|
||||||
|
connect( iconView, SIGNAL(itemDoubleClicked(QListWidgetItem*)),
|
||||||
|
this, SLOT(itemDoubleClicked(QListWidgetItem*)));
|
||||||
|
|
||||||
|
|
||||||
connect( listView, SIGNAL( currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*) ),
|
connect( listView, SIGNAL( currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*) ),
|
||||||
this, SLOT( listViewCurrentChanged(QTreeWidgetItem*) ) );
|
this, SLOT( listViewCurrentChanged(QTreeWidgetItem*) ) );
|
||||||
@@ -158,6 +161,9 @@ GroupObjectDialog::GroupObjectDialog(QWidget *parent) :
|
|||||||
connect( listView, SIGNAL( delObject_sign() ),
|
connect( listView, SIGNAL( delObject_sign() ),
|
||||||
this, SLOT( deleteObj() ) );
|
this, SLOT( deleteObj() ) );
|
||||||
|
|
||||||
|
connect( listView, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),
|
||||||
|
this, SLOT(itemDoubleClicked(QTreeWidgetItem*, int)));
|
||||||
|
|
||||||
QString s = st->getGroupViewColumns();
|
QString s = st->getGroupViewColumns();
|
||||||
int col0 = s.section(',',0,0).toInt();
|
int col0 = s.section(',',0,0).toInt();
|
||||||
int col1 = s.section(',',1,1).toInt();
|
int col1 = s.section(',',1,1).toInt();
|
||||||
@@ -727,3 +733,12 @@ void GroupObjectDialog::newObject()
|
|||||||
m_dialog->newButton->showMenu();
|
m_dialog->newButton->showMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GroupObjectDialog::itemDoubleClicked(QListWidgetItem*)
|
||||||
|
{
|
||||||
|
openObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
void GroupObjectDialog::itemDoubleClicked(QTreeWidgetItem*, int)
|
||||||
|
{
|
||||||
|
openObject();
|
||||||
|
}
|
||||||
|
|||||||
@@ -99,6 +99,9 @@ class GroupObjectDialog : public BaseObjectDialog
|
|||||||
void selectObject(libfwbuilder::FWObject *o);
|
void selectObject(libfwbuilder::FWObject *o);
|
||||||
|
|
||||||
void newObject();
|
void newObject();
|
||||||
|
|
||||||
|
void itemDoubleClicked(QListWidgetItem*);
|
||||||
|
void itemDoubleClicked(QTreeWidgetItem*, int);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user