[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform/sublime
From: Milian Wolff <mail () milianw ! de>
Date: 2009-10-25 23:31:39
Message-ID: 1256513499.843593.23957.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1040287 by mwolff:
unify indendation, use spaces instead of tabs
M +35 -35 ideal.cpp
--- trunk/KDE/kdevplatform/sublime/ideal.cpp #1040286:1040287
@@ -141,7 +141,7 @@
opt.rect.setSize(QSize(opt.rect.height(), opt.rect.width()));
QPixmap pix(opt.rect.width(), opt.rect.height());
- QStylePainter painter(&pix, this);
+ QStylePainter painter(&pix, this);
painter.fillRect(pix.rect(), opt.palette.background());
painter.drawComplexControl(QStyle::CC_ToolButton, opt);
painter.end();
@@ -302,12 +302,12 @@
} break;
case QEvent::ActionChanged: {
- if (IdealToolButton *button = _buttons.value(action)) {
- button->setText(action->text());
- button->updateNormalIcon(action->icon());
- button->setShortcut(QKeySequence());
- Q_ASSERT(_widgets.contains(action));
- _widgets[action]->setWindowTitle(action->text());
+ if (IdealToolButton *button = _buttons.value(action)) {
+ button->setText(action->text());
+ button->updateNormalIcon(action->icon());
+ button->setShortcut(QKeySequence());
+ Q_ASSERT(_widgets.contains(action));
+ _widgets[action]->setWindowTitle(action->text());
}
} break;
@@ -338,30 +338,30 @@
{
QAbstractButton *floatButton =
- qFindChild<QAbstractButton *>(this, QLatin1String("qt_dockwidget_floatbutton"));
+ qFindChild<QAbstractButton *>(this, QLatin1String("qt_dockwidget_floatbutton"));
QAbstractButton *closeButton =
- qFindChild<QAbstractButton *>(this, QLatin1String("qt_dockwidget_closebutton"));
+ qFindChild<QAbstractButton *>(this, QLatin1String("qt_dockwidget_closebutton"));
if (floatButton && closeButton) {
- disconnect(floatButton, SIGNAL(clicked()), 0, 0);
- disconnect(closeButton, SIGNAL(clicked()), 0, 0);
+ disconnect(floatButton, SIGNAL(clicked()), 0, 0);
+ disconnect(closeButton, SIGNAL(clicked()), 0, 0);
- m_anchor = floatButton;
- m_anchor->setCheckable(true);
- m_anchor->setToolTip(i18n("Lock the tool"));
- m_anchor->setWhatsThis(i18n("<b>Lock the tool</b><p>When a tool is unlocked, it "
- "will be automatically hidden when you click outside it. "
- "A locked tool will remain visible until you explicitly "
- "hide it, or switch to a different tool.</p>"));
- connect(m_anchor, SIGNAL(toggled(bool)), SIGNAL(anchor(bool)));
+ m_anchor = floatButton;
+ m_anchor->setCheckable(true);
+ m_anchor->setToolTip(i18n("Lock the tool"));
+ m_anchor->setWhatsThis(i18n("<b>Lock the tool</b><p>When a tool is unlocked, it "
+ "will be automatically hidden when you click outside it. "
+ "A locked tool will remain visible until you explicitly "
+ "hide it, or switch to a different tool.</p>"));
+ connect(m_anchor, SIGNAL(toggled(bool)), SIGNAL(anchor(bool)));
- m_close = closeButton;
- m_close->setToolTip(i18n("Remove the tool"));
- m_close->setWhatsThis(i18n("<b>Remove the tool</b><p>Removes this tool completely. "
- "You can add the tool again by using the "
- "<tt>View->Add Tool View</tt> command.</p>"));
- connect(m_close, SIGNAL(clicked(bool)), this, SLOT(slotRemove()));
+ m_close = closeButton;
+ m_close->setToolTip(i18n("Remove the tool"));
+ m_close->setWhatsThis(i18n("<b>Remove the tool</b><p>Removes this tool completely. "
+ "You can add the tool again by using the "
+ "<tt>View->Add Tool View</tt> command.</p>"));
+ connect(m_close, SIGNAL(clicked(bool)), this, SLOT(slotRemove()));
}
}
@@ -831,7 +831,7 @@
options.initFrom(this);
if (m_orientation == Qt::Vertical)
- options.state |= QStyle::State_Horizontal;
+ options.state |= QStyle::State_Horizontal;
options.state |= QStyle::State_Enabled;
@@ -1086,14 +1086,14 @@
int size = 0;
if (! icon().isNull()) {
- const QPixmap pix =
- icon().pixmap(style()->pixelMetric(QStyle::PM_SmallIconSize));
+ const QPixmap pix =
+ icon().pixmap(style()->pixelMetric(QStyle::PM_SmallIconSize));
- size += qMax(pix.width(), pix.height());
+ size += qMax(pix.width(), pix.height());
}
const int titleBarButtonMargin =
- style()->pixelMetric(QStyle::PM_DockWidgetTitleBarButtonMargin);
+ style()->pixelMetric(QStyle::PM_DockWidgetTitleBarButtonMargin);
size += titleBarButtonMargin * 2;
@@ -1106,7 +1106,7 @@
void IdealDockWidgetButton::enterEvent(QEvent *event)
{
if (isEnabled())
- update();
+ update();
QToolButton::enterEvent(event);
}
@@ -1114,7 +1114,7 @@
void IdealDockWidgetButton::leaveEvent(QEvent *event)
{
if (isEnabled())
- update();
+ update();
QToolButton::leaveEvent(event);
}
@@ -1128,11 +1128,11 @@
options.state |= QStyle::State_AutoRaise;
if (isEnabled() && underMouse() && ! isChecked() && ! isDown())
- options.state |= QStyle::State_Raised;
+ options.state |= QStyle::State_Raised;
if (isChecked())
- options.state |= QStyle::State_On;
+ options.state |= QStyle::State_On;
if (isDown())
- options.state |= QStyle::State_Sunken;
+ options.state |= QStyle::State_Sunken;
options.subControls = QStyle::SC_None;
options.activeSubControls = QStyle::SC_None;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic