hard code some size hint into the file system support dialog so it doesn't open
way too small on first time. also, add some const accessors to the class while we're at it. svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1076607
This commit is contained in:
parent
908bfe3669
commit
90720ad383
2
TODO
2
TODO
|
@ -23,8 +23,6 @@ Random plans and ideas for 1.1 and beyond:
|
|||
hopefully be able to get meaningful progress status reporting while resizing,
|
||||
checking and so on.
|
||||
|
||||
* Default size of File System Support dialog window.
|
||||
|
||||
* Re-design partition list. Maybe include all disks into the list and drop the
|
||||
devices panel?
|
||||
|
||||
|
|
|
@ -39,8 +39,6 @@ FileSystemSupportDialog::FileSystemSupportDialog(QWidget* parent) :
|
|||
setCaption(i18nc("@title:window", "File System Support"));
|
||||
setButtons(KDialog::Ok);
|
||||
|
||||
resize(dialogWidget().width(), dialogWidget().height());
|
||||
|
||||
setupDialog();
|
||||
setupConnections();
|
||||
|
||||
|
@ -54,6 +52,11 @@ FileSystemSupportDialog::~FileSystemSupportDialog()
|
|||
saveDialogSize(kcg);
|
||||
}
|
||||
|
||||
QSize FileSystemSupportDialog::sizeHint() const
|
||||
{
|
||||
return QSize(690, 490);
|
||||
}
|
||||
|
||||
void FileSystemSupportDialog::setupDialog()
|
||||
{
|
||||
QPixmap yes(BarIcon("dialog-ok"));
|
||||
|
|
|
@ -48,18 +48,24 @@ class FileSystemSupportDialog : public KDialog
|
|||
|
||||
public:
|
||||
QTreeWidget& tree() { Q_ASSERT(m_Tree); return *m_Tree; }
|
||||
const QTreeWidget& tree() const { Q_ASSERT(m_Tree); return *m_Tree; }
|
||||
KPushButton& buttonRescan() { Q_ASSERT(m_ButtonRescan); return *m_ButtonRescan; }
|
||||
const KPushButton& buttonRescan() const { Q_ASSERT(m_ButtonRescan); return *m_ButtonRescan; }
|
||||
};
|
||||
|
||||
public:
|
||||
FileSystemSupportDialog(QWidget* parent);
|
||||
~FileSystemSupportDialog();
|
||||
|
||||
public:
|
||||
QSize sizeHint() const;
|
||||
|
||||
protected slots:
|
||||
void onButtonRescanClicked();
|
||||
|
||||
protected:
|
||||
FileSystemSupportDialogWidget& dialogWidget() { Q_ASSERT(m_FileSystemSupportDialogWidget); return *m_FileSystemSupportDialogWidget; }
|
||||
const FileSystemSupportDialogWidget& dialogWidget() const { Q_ASSERT(m_FileSystemSupportDialogWidget); return *m_FileSystemSupportDialogWidget; }
|
||||
void setupDialog();
|
||||
void setupConnections();
|
||||
|
||||
|
|
Loading…
Reference in New Issue