src/download.cpp

changeset 548
a99f41732cd2
parent 539
72ad83a67165
child 549
715d9a7f6598
--- 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;

mercurial