Fri, 06 Dec 2013 21:30:58 +0200
minor cleanup
src/download.cpp | file | annotate | diff | comparison | revisions |
--- a/src/download.cpp Fri Dec 06 21:25:49 2013 +0200 +++ b/src/download.cpp Fri Dec 06 21:30:58 2013 +0200 @@ -279,21 +279,15 @@ // ============================================================================= // ----------------------------------------------------------------------------- QPushButton* PartDownloader::getButton (PartDownloader::Button i) -{ typedef QDialogButtonBox QDBB; - alias btnbox = ui->buttonBox; - - switch (i) +{ switch (i) { case Download: - { return m_downloadButton; - } + return m_downloadButton; case Abort: - { return qobject_cast<QPushButton*> (btnbox->button (QDBB::Abort)); - } + return qobject_cast<QPushButton*> (ui->buttonBox->button (QDialogButtonBox::Abort)); case Close: - { return qobject_cast<QPushButton*> (btnbox->button (QDBB::Close)); - } + return qobject_cast<QPushButton*> (ui->buttonBox->button (QDialogButtonBox::Close)); } return null;