src/settingseditor/librarieseditor.cpp

changeset 218
63125c36de73
parent 206
654661eab7f3
child 259
c27612f0eac0
equal deleted inserted replaced
217:6d95c1a41e6e 218:63125c36de73
2 #include <QMenu> 2 #include <QMenu>
3 #include <QMessageBox> 3 #include <QMessageBox>
4 #include "librarieseditor.h" 4 #include "librarieseditor.h"
5 #include "ui_librarieseditor.h" 5 #include "ui_librarieseditor.h"
6 6
7 LibrariesEditor::LibrariesEditor(Configuration* settings, QWidget* parent) : 7 LibrariesEditor::LibrariesEditor(QWidget* parent) :
8 QWidget{parent}, 8 QWidget{parent},
9 libraries{settings, this}, 9 libraries{this},
10 ui{*new Ui_LibrariesEditor} 10 ui{*new Ui_LibrariesEditor}
11 { 11 {
12 this->ui.setupUi(this); 12 this->ui.setupUi(this);
13 connect( 13 connect(
14 this->ui.newLibrarySearch, 14 this->ui.newLibrarySearch,
142 int LibrariesEditor::currentLibraryIndex() const 142 int LibrariesEditor::currentLibraryIndex() const
143 { 143 {
144 return this->ui.librariesTable->selectionModel()->currentIndex().row(); 144 return this->ui.librariesTable->selectionModel()->currentIndex().row();
145 } 145 }
146 146
147 void LibrariesEditor::saveSettings(Configuration* settings) 147 void LibrariesEditor::saveSettings()
148 { 148 {
149 this->libraries.storeToSettings(settings); 149 this->libraries.storeToSettings();
150 } 150 }

mercurial