Moved screenCenter function to misc.h to avoid code duplication

Make sure torrent deletion dialog is now centered on screen
This commit is contained in:
Christophe Dumez
2010-01-21 22:23:13 +00:00
parent 6a6077bf1d
commit 44f6c972d4
5 changed files with 21 additions and 36 deletions

View File

@@ -33,6 +33,7 @@
#include <QDialog>
#include "ui_confirmdeletiondlg.h"
#include "misc.h"
class DeletionConfirmationDlg : public QDialog, private Ui::confirmDeletionDlg {
Q_OBJECT
@@ -40,6 +41,7 @@ class DeletionConfirmationDlg : public QDialog, private Ui::confirmDeletionDlg {
public:
DeletionConfirmationDlg(QWidget *parent=0): QDialog(parent) {
setupUi(this);
move(misc::screenCenter(this));
}
bool shouldDeleteLocalFiles() const {