- Adds "rename" to the context menu for categories, it uses the same code path as the default dblClick handler for the base class. - Added a separator so the context menu looks more like the one for models - Some whitespace changes in mdichild.h, my editor truncates whitespace on blank lines.
This commit is contained in:
committed by
Bertrand Songis
parent
58971dffea
commit
c6026e8a0f
@@ -54,7 +54,7 @@ class MdiChild : public QWidget
|
||||
int getCurrentRow() const;
|
||||
void refresh(bool expand=false);
|
||||
void keyPressEvent(QKeyEvent * event);
|
||||
|
||||
|
||||
signals:
|
||||
void copyAvailable(bool val);
|
||||
|
||||
@@ -69,12 +69,13 @@ class MdiChild : public QWidget
|
||||
void on_radioSettings_clicked();
|
||||
void setDefault();
|
||||
void onFirmwareChanged();
|
||||
|
||||
|
||||
public slots:
|
||||
void showModelsListContextMenu(const QPoint & pos);
|
||||
void checkAndInitModel(int row);
|
||||
void generalEdit();
|
||||
void categoryAdd();
|
||||
void categoryRename();
|
||||
void categoryDelete();
|
||||
void modelAdd();
|
||||
void modelEdit();
|
||||
@@ -84,7 +85,7 @@ class MdiChild : public QWidget
|
||||
void confirmDelete();
|
||||
void deleteSelectedModels();
|
||||
void onDataChanged(const QModelIndex & index);
|
||||
|
||||
|
||||
void cut();
|
||||
void copy();
|
||||
void paste();
|
||||
@@ -101,11 +102,11 @@ class MdiChild : public QWidget
|
||||
void doCopy(QByteArray * gmData);
|
||||
void doPaste(QByteArray * gmData, int index);
|
||||
void initModelsList();
|
||||
|
||||
|
||||
MainWindow * parent;
|
||||
Ui::MdiChild * ui;
|
||||
TreeModel * modelsListModel;
|
||||
|
||||
|
||||
QString curFile;
|
||||
|
||||
Firmware * firmware;
|
||||
|
||||
Reference in New Issue
Block a user