Browse Source

[Qt] remove unused optionsmodel from addressbookpage

0.10
Philip Kaufmann 11 years ago
parent
commit
5cd85c4228
  1. 7
      src/qt/addressbookpage.cpp
  2. 3
      src/qt/addressbookpage.h

7
src/qt/addressbookpage.cpp

@ -10,7 +10,6 @@ @@ -10,7 +10,6 @@
#include "ui_addressbookpage.h"
#include "addresstablemodel.h"
#include "optionsmodel.h"
#include "bitcoingui.h"
#include "editaddressdialog.h"
#include "csvmodelwriter.h"
@ -25,7 +24,6 @@ AddressBookPage::AddressBookPage(Mode mode, Tabs tab, QWidget *parent) : @@ -25,7 +24,6 @@ AddressBookPage::AddressBookPage(Mode mode, Tabs tab, QWidget *parent) :
QDialog(parent),
ui(new Ui::AddressBookPage),
model(0),
optionsModel(0),
mode(mode),
tab(tab)
{
@ -148,11 +146,6 @@ void AddressBookPage::setModel(AddressTableModel *model) @@ -148,11 +146,6 @@ void AddressBookPage::setModel(AddressTableModel *model)
selectionChanged();
}
void AddressBookPage::setOptionsModel(OptionsModel *optionsModel)
{
this->optionsModel = optionsModel;
}
void AddressBookPage::on_copyAddress_clicked()
{
GUIUtil::copyEntryData(ui->tableView, AddressTableModel::Address);

3
src/qt/addressbookpage.h

@ -11,7 +11,6 @@ namespace Ui { @@ -11,7 +11,6 @@ namespace Ui {
class AddressBookPage;
}
class AddressTableModel;
class OptionsModel;
QT_BEGIN_NAMESPACE
class QTableView;
@ -42,7 +41,6 @@ public: @@ -42,7 +41,6 @@ public:
~AddressBookPage();
void setModel(AddressTableModel *model);
void setOptionsModel(OptionsModel *optionsModel);
const QString &getReturnValue() const { return returnValue; }
public slots:
@ -51,7 +49,6 @@ public slots: @@ -51,7 +49,6 @@ public slots:
private:
Ui::AddressBookPage *ui;
AddressTableModel *model;
OptionsModel *optionsModel;
Mode mode;
Tabs tab;
QString returnValue;

Loading…
Cancel
Save