Commit 3747e941 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

Clean up whitespace before EOL



Change-Id: I385544a10b9be66589b0d1a48594128035836c8a
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 50417fd9
......@@ -133,7 +133,7 @@ enum { debugLeaks = 0 };
invokable methods of the "provider" object in the object pool.
The \c{ExtensionSystem::invoke} function template encapsulates
{ExtensionSystem::Invoker} construction for the common case where
{ExtensionSystem::Invoker} construction for the common case where
the success of the call is not checked.
\code
......
......@@ -226,7 +226,7 @@ QPacketProtocol::~QPacketProtocol()
/*!
Returns the maximum packet size allowed. By default this is
2,147,483,647 bytes.
If a packet claiming to be larger than the maximum packet size is received,
the QPacketProtocol::invalidPacket() signal is emitted.
......
......@@ -199,7 +199,7 @@ void ColorBox::paintEvent(QPaintEvent *event)
}
m_cache = QPixmap::fromImage(cache);
}
p.drawPixmap(5, 5, m_cache);
int x = clamp(m_color.hsvSaturationF() * 120, 0, 119) + 5;
......
......@@ -103,7 +103,7 @@ void ContextPaneTextWidget::setProperties(QmlJS::PropertyReader *propertyReader)
if (propertyReader->hasProperty(QLatin1String("font.pointSize"))) {
QVariant variant = propertyReader->readProperty(QLatin1String("font.pointSize"));
bool b;
ui->fontSizeSpinBox->setValue(variant.toInt(&b));
ui->fontSizeSpinBox->setValue(variant.toInt(&b));
ui->fontSizeSpinBox->setEnabled(b);
ui->fontSizeSpinBox->setIsPointSize(true);
} else if (!propertyReader->hasProperty(QLatin1String("font.pixelSize"))) {
......@@ -276,7 +276,7 @@ void ContextPaneTextWidget::onColorButtonToggled(bool flag)
ContextPaneWidget *parentContextWidget = qobject_cast<ContextPaneWidget*>(parentWidget());
QPoint p = mapToGlobal(ui->colorButton->pos());
parentContextWidget->colorDialog()->setupColor(ui->colorButton->color().toString());
p = parentContextWidget->colorDialog()->parentWidget()->mapFromGlobal(p);
p = parentContextWidget->colorDialog()->parentWidget()->mapFromGlobal(p);
parentContextWidget->onShowColorDialog(flag, p);
}
......@@ -301,7 +301,7 @@ void ContextPaneTextWidget::onColorDialogCancled()
}
void ContextPaneTextWidget::onFontSizeChanged(int)
{
{
if (m_fontSizeTimer > 0)
killTimer(m_fontSizeTimer);
m_fontSizeTimer = startTimer(200);
......@@ -310,9 +310,9 @@ void ContextPaneTextWidget::onFontSizeChanged(int)
void ContextPaneTextWidget::onFontFormatChanged()
{
int size = ui->fontSizeSpinBox->value();
if (ui->fontSizeSpinBox->isPointSize()) {
if (ui->fontSizeSpinBox->isPointSize()) {
emit removeAndChangeProperty(QLatin1String("font.pixelSize"), QLatin1String("font.pointSize"), size, true);
} else {
} else {
emit removeAndChangeProperty(QLatin1String("font.pointSize"), QLatin1String("font.pixelSize"), size, true);
}
......
......@@ -411,7 +411,7 @@ void ContextPaneWidget::onTogglePane()
}
void ContextPaneWidget::onShowColorDialog(bool checked, const QPoint &p)
{
{
if (checked) {
colorDialog()->setParent(parentWidget());
colorDialog()->move(p);
......@@ -423,7 +423,7 @@ void ContextPaneWidget::onShowColorDialog(bool checked, const QPoint &p)
}
void ContextPaneWidget::onDisable(bool b)
{
{
enabledChanged(b);
if (!b) {
hide();
......@@ -448,7 +448,7 @@ void ContextPaneWidget::protectedMoved()
}
QWidget* ContextPaneWidget::createFontWidget()
{
{
m_textWidget = new ContextPaneTextWidget(this);
connect(m_textWidget, SIGNAL(propertyChanged(QString,QVariant)), this, SIGNAL(propertyChanged(QString,QVariant)));
connect(m_textWidget, SIGNAL(removeProperty(QString)), this, SIGNAL(removeProperty(QString)));
......
......@@ -54,7 +54,7 @@ bool LabelFilter::eventFilter(QObject *obj, QEvent *event)
emit doubleClicked();
event->accept();
return true;
}
}
return QObject::eventFilter(obj, event);
}
......@@ -113,7 +113,7 @@ ContextPaneWidgetImage::ContextPaneWidgetImage(QWidget *parent, bool borderImage
connect(ui->horizontalStretchRadioButton, SIGNAL(toggled(bool)), this, SLOT(onStretchChanged()));
connect(ui->verticalStretchRadioButton, SIGNAL(toggled(bool)), this, SLOT(onStretchChanged()));
connect(ui->preserveAspectFitRadioButton, SIGNAL(toggled(bool)), this, SLOT(onStretchChanged()));
connect(ui->cropAspectFitRadioButton, SIGNAL(toggled(bool)), this, SLOT(onStretchChanged()));
connect(ui->cropAspectFitRadioButton, SIGNAL(toggled(bool)), this, SLOT(onStretchChanged()));
}
previewDialog();
m_fileWidget->setShowComboBox(true);
......@@ -205,7 +205,7 @@ void ContextPaneWidgetImage::setProperties(QmlJS::PropertyReader *propertyReader
ui->cropAspectFitRadioButton->setChecked(true);
} else {
ui->stretchRadioButton->setChecked(true);
}
}
}
if (propertyReader->hasProperty(QLatin1String("source"))) {
QString source = propertyReader->readProperty(QLatin1String("source")).toString();
......@@ -336,7 +336,7 @@ void ContextPaneWidgetImage::onFileNameChanged()
}
void ContextPaneWidgetImage::onPixmapDoubleClicked()
{
{
previewDialog()->setParent(parentWidget()->parentWidget());
previewDialog()->setMaximumSize(previewDialog()->parentWidget()->size() - QSize(150, 100));
if (m_borderImage)
......@@ -358,7 +358,7 @@ void ContextPaneWidgetImage::onPixmapDoubleClicked()
if (previewDialog()->pos().x() < 0)
previewDialog()->move(0, previewDialog()->pos().y());
if (previewDialog()->pos().y() < 0)
previewDialog()->move(previewDialog()->pos().x(), 0);
previewDialog()->move(previewDialog()->pos().x(), 0);
previewDialog()->raise();
}
......
......@@ -129,7 +129,7 @@ public:
explicit ContextPaneWidgetImage(QWidget *parent = 0, bool borderImage = false);
~ContextPaneWidgetImage();
void setProperties(QmlJS::PropertyReader *propertyReader);
void setPath(const QString& path);
void setPath(const QString& path);
PreviewDialog* previewDialog();
signals:
......
......@@ -74,7 +74,7 @@ ContextPaneWidgetRectangle::~ContextPaneWidgetRectangle()
}
void ContextPaneWidgetRectangle::setProperties(QmlJS::PropertyReader *propertyReader)
{
{
m_hasGradient = propertyReader->hasProperty(QLatin1String("gradient"));
m_none = false;
m_hasBorder = false;
......
......@@ -64,7 +64,7 @@ QAbstractSpinBox::StepEnabled FontSizeSpinBox::stepEnabled() const
{
if (value() > 1)
return (StepUpEnabled | StepDownEnabled);
else
else
return StepUpEnabled;
}
void FontSizeSpinBox::setText()
......
......@@ -220,7 +220,7 @@ bool QmlDirParser::parse(const QString &source)
}
}
} else {
reportError(lineNumber, -1,
reportError(lineNumber, -1,
QString::fromUtf8("a component declaration requires two or three arguments, but %1 were provided").arg(sectionCount));
}
......
......@@ -114,7 +114,7 @@ QmlError &QmlError::operator=(const QmlError &other)
}
/*!
\internal
\internal
*/
QmlError::~QmlError()
{
......@@ -211,7 +211,7 @@ QString QmlError::toString() const
rv = QLatin1String("<Unknown File>");
} else if (line() != -1) {
rv = url().toString() + QLatin1Char(':') + QString::number(line());
if(column() != -1)
if(column() != -1)
rv += QLatin1Char(':') + QString::number(column());
} else {
rv = url().toString();
......@@ -253,7 +253,7 @@ QDebug operator<<(QDebug debug, const QmlError &error)
if(error.column() > 0) {
int column = qMax(0, error.column() - 1);
column = qMin(column, line.length());
column = qMin(column, line.length());
QByteArray ind;
ind.reserve(column);
......
......@@ -556,7 +556,7 @@ again:
_validTokenText = true;
_tokenText.resize(0);
startCode--;
while (startCode != _codePtr - 1)
while (startCode != _codePtr - 1)
_tokenText += *startCode++;
while (! _char.isNull()) {
......
......@@ -751,7 +751,7 @@ public:
AST::UiQualifiedId *qmlTypeName() const;
private:
private:
virtual const Value *value(ReferenceContext *referenceContext) const;
AST::UiQualifiedId *_qmlTypeName;
......
......@@ -36,7 +36,7 @@
** $QT_END_LICENSE$
**
****************************************************************************/
#include <qdeclarative.h>
#include "qstyleplugin.h"
#include "qstyleitem.h"
......
......@@ -164,7 +164,7 @@ FutureProgress::FutureProgress(QWidget *parent) :
connect(&d->m_watcher, SIGNAL(progressValueChanged(int)), this, SLOT(setProgressValue(int)));
connect(&d->m_watcher, SIGNAL(progressTextChanged(QString)),
this, SLOT(setProgressText(QString)));
connect(d->m_progress, SIGNAL(clicked()), this, SLOT(cancel()));
connect(d->m_progress, SIGNAL(clicked()), this, SLOT(cancel()));
}
/*!
......
......@@ -85,7 +85,7 @@ VersionDialog::VersionDialog(QWidget *parent)
"The program is provided AS IS with NO WARRANTY OF ANY KIND, "
"INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A "
"PARTICULAR PURPOSE.<br/>")
.arg(version,
.arg(version,
QLatin1String(QT_VERSION_STR), QString::number(QSysInfo::WordSize),
QLatin1String(__DATE__), QLatin1String(__TIME__), QLatin1String(Constants::IDE_YEAR),
(QLatin1String(Constants::IDE_AUTHOR)), ideVersionDescription,
......
......@@ -766,7 +766,7 @@ void CodeFormatter::correctIndentation(const QTextBlock &block)
}
bool CodeFormatter::tryExpression(bool alsoExpression)
{
{
int newState = -1;
const int kind = m_currentToken.kind();
......@@ -1027,7 +1027,7 @@ void CodeFormatter::saveCurrentState(const QTextBlock &block)
void CodeFormatter::restoreCurrentState(const QTextBlock &block)
{
if (block.isValid()) {
if (block.isValid()) {
BlockData blockData;
if (loadBlockData(block, &blockData)) {
m_indentDepth = blockData.m_indentDepth;
......
......@@ -371,7 +371,7 @@ void DisassemblerAgent::updateLocationMarker()
QPlainTextEdit *plainTextEdit =
qobject_cast<QPlainTextEdit *>(d->editor->widget());
QTC_ASSERT(plainTextEdit, return);
QTC_ASSERT(plainTextEdit, return);
QTextCursor tc = plainTextEdit->textCursor();
QTextBlock block = tc.document()->findBlockByNumber(lineNumber - 1);
tc.setPosition(block.position());
......
......@@ -162,7 +162,7 @@ private:
QQueue<PdbCommand> m_commands;
QByteArray m_inbuffer;
QByteArray m_inbuffer;
QString m_scriptFileName;
QProcess m_pdbProc;
QString m_pdb;
......
......@@ -93,7 +93,7 @@ void SnapshotTreeView::contextMenuEvent(QContextMenuEvent *ev)
QAction *actRemove = menu.addAction(tr("Remove Snapshot"));
actRemove->setEnabled(idx.isValid());
addBaseContextActions(&menu);
QAction *act = menu.exec(ev->globalPos());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment