Mercurial > hg > octave-lyh
comparison libgui/src/workspace-model.h @ 16478:079ec7ce60e0
delete useless connection; style fixes
* main-window.cc (main_window::construct): Delete connection from
_workspace_model::model_changed to nonexistent slot
workspace_window::model_changed.
* workspace-model.cc, workspace-model.h, workspace-view.cc,
workspace-view.h: Style fixes.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 09 Apr 2013 03:40:28 -0400 |
parents | 64727ed135cb |
children | 45ae1038ee89 |
comparison
equal
deleted
inserted
replaced
16477:64727ed135cb | 16478:079ec7ce60e0 |
---|---|
36 | 36 |
37 public: | 37 public: |
38 | 38 |
39 workspace_model (QObject *parent = 0); | 39 workspace_model (QObject *parent = 0); |
40 | 40 |
41 ~workspace_model (void); | 41 ~workspace_model (void) { } |
42 | 42 |
43 QVariant data (const QModelIndex &index, int role) const; | 43 QVariant data (const QModelIndex& index, int role) const; |
44 | 44 |
45 Qt::ItemFlags flags (const QModelIndex &index) const; | 45 Qt::ItemFlags flags (const QModelIndex& index) const; |
46 | 46 |
47 QVariant headerData (int section, Qt::Orientation orientation, | 47 QVariant headerData (int section, Qt::Orientation orientation, |
48 int role = Qt::DisplayRole) const; | 48 int role = Qt::DisplayRole) const; |
49 | 49 |
50 int rowCount (const QModelIndex &parent = QModelIndex ()) const; | 50 int rowCount (const QModelIndex& parent = QModelIndex ()) const; |
51 | 51 |
52 int columnCount (const QModelIndex &parent = QModelIndex ()) const; | 52 int columnCount (const QModelIndex& parent = QModelIndex ()) const; |
53 | 53 |
54 public slots: | 54 public slots: |
55 | 55 |
56 void set_workspace (const QString& scopes, | 56 void set_workspace (const QString& scopes, |
57 const QStringList& symbols, | 57 const QStringList& symbols, |
77 QStringList _values; | 77 QStringList _values; |
78 | 78 |
79 QStringList _columnNames; | 79 QStringList _columnNames; |
80 }; | 80 }; |
81 | 81 |
82 #endif // WORKSPACEMODEL_H | 82 #endif |