src/download.cpp

changeset 548
a99f41732cd2
parent 539
72ad83a67165
child 549
715d9a7f6598
equal deleted inserted replaced
547:e2e6ef2f40de 548:a99f41732cd2
277 } 277 }
278 278
279 // ============================================================================= 279 // =============================================================================
280 // ----------------------------------------------------------------------------- 280 // -----------------------------------------------------------------------------
281 QPushButton* PartDownloader::getButton (PartDownloader::Button i) 281 QPushButton* PartDownloader::getButton (PartDownloader::Button i)
282 { typedef QDialogButtonBox QDBB; 282 { switch (i)
283 alias btnbox = ui->buttonBox;
284
285 switch (i)
286 { case Download: 283 { case Download:
287 { return m_downloadButton; 284 return m_downloadButton;
288 }
289 285
290 case Abort: 286 case Abort:
291 { return qobject_cast<QPushButton*> (btnbox->button (QDBB::Abort)); 287 return qobject_cast<QPushButton*> (ui->buttonBox->button (QDialogButtonBox::Abort));
292 }
293 288
294 case Close: 289 case Close:
295 { return qobject_cast<QPushButton*> (btnbox->button (QDBB::Close)); 290 return qobject_cast<QPushButton*> (ui->buttonBox->button (QDialogButtonBox::Close));
296 }
297 } 291 }
298 292
299 return null; 293 return null;
300 } 294 }
301 295

mercurial