[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/dialogs
From: Parker Coates <parker.coates () gmail ! com>
Date: 2008-10-18 17:15:37
Message-ID: 1224350137.314118.21493.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 873069 by coates:
Added KDialog::groupSpacingHint() as discussed on kde-core-devel.
M +11 -5 kdialog.cpp
M +9 -2 kdialog.h
M +1 -0 kdialog_p.h
--- trunk/KDE/kdelibs/kdeui/dialogs/kdialog.cpp #873068:873069
@@ -51,6 +51,7 @@
int KDialogPrivate::mMarginSize = 9;
int KDialogPrivate::mSpacingSize = 6;
+int KDialogPrivate::mGroupSpacingSize = 16;
void KDialogPrivate::setupLayout()
{
@@ -327,7 +328,7 @@
QSize KDialog::sizeHint() const
{
Q_D(const KDialog);
-
+
if (!d->mMinSize.isEmpty())
return d->mMinSize.expandedTo( minimumSizeHint() ) + d->mIncSize;
else {
@@ -340,7 +341,7 @@
QSize KDialog::minimumSizeHint() const
{
Q_D(const KDialog);
-
+
if (d->dirty)
const_cast<KDialogPrivate*>(d)->queuedLayoutUpdate();
return QDialog::minimumSizeHint() + d->mIncSize;
@@ -402,6 +403,11 @@
return KDialogPrivate::mSpacingSize;
}
+int KDialog::groupSpacingHint()
+{
+ return KDialogPrivate::mGroupSpacingSize;
+}
+
QString KDialog::makeStandardCaption( const QString &userCaption,
QWidget* window,
CaptionFlags flags )
@@ -999,13 +1005,13 @@
{
public:
Private(KDialogQueue *q): q(q) {}
-
- void slotShowQueuedDialog();
+ void slotShowQueuedDialog();
+
KDialogQueue *q;
QList< QPointer<QDialog> > queue;
bool busy;
-
+
};
KDialogQueue* KDialogQueue::self()
--- trunk/KDE/kdelibs/kdeui/dialogs/kdialog.h #873068:873069
@@ -397,18 +397,25 @@
KPushButton* button( ButtonCode id ) const;
/**
- * Return the number of pixels you shall use between a
+ * Returns the number of pixels that should be used between a
* dialog edge and the outermost widget(s) according to the KDE standard.
*/
static int marginHint();
/**
- * Return the number of pixels you shall use between
+ * Returns the number of pixels that should be used between
* widgets inside a dialog according to the KDE standard.
*/
static int spacingHint();
/**
+ * Returns the number of pixels that should be used to visually
+ * separate groups of related options in a dialog according to
+ * the KDE standard.
+ */
+ static int groupSpacingHint();
+
+ /**
* @enum StandardCaptionFlag
* Used to specify how to construct a window caption
*
--- trunk/KDE/kdelibs/kdeui/dialogs/kdialog_p.h #873068:873069
@@ -78,6 +78,7 @@
static int mMarginSize;
static int mSpacingSize;
+ static int mGroupSpacingSize;
protected Q_SLOTS:
void queuedLayoutUpdate();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic