DolphinQt: Make use of the C++11 signal/slot connection syntax.

Also use lambdas over one-line functions in some cases.
This commit is contained in:
waddlesplash
2015-09-10 23:31:40 -04:00
parent 3014feedc8
commit 8fbf70ec55
6 changed files with 44 additions and 75 deletions

View File

@ -27,7 +27,7 @@ DSystemInfo::DSystemInfo(QWidget* parent_widget) :
UpdateSystemInfo();
QPushButton* btn = m_ui->buttonBox->addButton(tr("Copy"), QDialogButtonBox::ActionRole);
connect(btn, SIGNAL(pressed()), this, SLOT(CopyPressed()));
connect(btn, &QPushButton::pressed, this, &DSystemInfo::CopyPressed);
}
DSystemInfo::~DSystemInfo()