[Companion] Crash fix
This commit is contained in:
@@ -105,62 +105,4 @@ class TreeModel : public QAbstractItemModel
|
||||
int availableEEpromSize;
|
||||
};
|
||||
|
||||
#if 0
|
||||
class ModelsListWidget : public QTreeView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ModelsListWidget(QWidget * parent = 0);
|
||||
|
||||
void setRadioData(RadioData * radioData);
|
||||
bool hasSelection();
|
||||
void keyPressEvent(QKeyEvent * event);
|
||||
bool hasPasteData();
|
||||
int currentRow() const;
|
||||
|
||||
protected:
|
||||
void dropEvent(QDropEvent *event);
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
void dragEnterEvent(QDragEnterEvent *event);
|
||||
void dragLeaveEvent(QDragLeaveEvent *event);
|
||||
void dragMoveEvent(QDragMoveEvent *event);
|
||||
#ifndef WIN32
|
||||
void focusInEvent ( QFocusEvent * event );
|
||||
void focusOutEvent ( QFocusEvent * event );
|
||||
#endif
|
||||
|
||||
public slots:
|
||||
void refreshList();
|
||||
|
||||
void cut();
|
||||
void copy();
|
||||
void paste();
|
||||
void print();
|
||||
void EditModel();
|
||||
void LoadBackup();
|
||||
void OpenWizard();
|
||||
void duplicate();
|
||||
|
||||
void deleteSelected(bool ask);
|
||||
void confirmDelete();
|
||||
void onCurrentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);
|
||||
|
||||
private:
|
||||
void doCut(QByteArray *gmData);
|
||||
void doPaste(QByteArray *gmData, int index);
|
||||
void doCopy(QByteArray *gmData);
|
||||
void saveSelection();
|
||||
void restoreSelection();
|
||||
|
||||
RadioData * radioData;
|
||||
QPoint dragStartPosition;
|
||||
|
||||
CurrentSelection currentSelection;
|
||||
QColor active_highlight_color;
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif // _MODELSLIST_H_
|
||||
|
||||
Reference in New Issue
Block a user