History

Fix code not compliant with coding standards

Ryan Huffman committed 12 years ago

Commit e0ec0f61 parent edcff0b8 files · +87 −91Browse files

Showing the changes to interface/src/ui/ScriptsTableWidget.cpp (1 of 8 files). Show all

Unified · Split

interface/src/ui/ScriptsTableWidget.cpp+13−11
@@ -4,17 +4,20 @@ · 3 unmodified lines
44 //
55 // Created by Mohammed Nafees on 04/03/2014.
66 // Copyright (c) 2014 High Fidelity, Inc. All rights reserved.
7+//
8+// Distributed under the Apache License, Version 2.0.
9+// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10+//
711
8−#include "ScriptsTableWidget.h"
9−
10−#include <QHeaderView>
11−#include <QPainter>
1212 #include <QDebug>
13+#include <QHeaderView>
1314 #include <QKeyEvent>
15+#include <QPainter>
16+
17+#include "ScriptsTableWidget.h"
1418
15−ScriptsTableWidget::ScriptsTableWidget(QWidget *parent) :
16− QTableWidget(parent)
17−{
19+ScriptsTableWidget::ScriptsTableWidget(QWidget* parent) :
20+ QTableWidget(parent) {
1821 verticalHeader()->setVisible(false);
1922 horizontalHeader()->setVisible(false);
2023 setShowGrid(false);
@@ -26,13 +29,12 @@ ScriptsTableWidget::ScriptsTableWidget(QWidget *parent) : · 5 unmodified lines
2629 setGeometry(0, 0, parent->width(), parent->height());
2730 }
2831
29−void ScriptsTableWidget::paintEvent(QPaintEvent *event)
30−{
32+void ScriptsTableWidget::paintEvent(QPaintEvent* event) {
3133 QPainter painter(viewport());
3234 painter.setPen(QColor::fromRgb(225, 225, 225)); // #e1e1e1
3335
3436 int y = 0;
35− for (int i = 0; i < rowCount(); ++i) {
37+ for (int i = 0; i < rowCount(); i++) {
3638 painter.drawLine(5, rowHeight(i) + y, width(), rowHeight(i) + y);
3739 y += rowHeight(i);
3840 }
@@ -41,7 +43,7 @@ void ScriptsTableWidget::paintEvent(QPaintEvent *event) · 2 unmodified lines
4143 QTableWidget::paintEvent(event);
4244 }
4345
44−void ScriptsTableWidget::keyPressEvent(QKeyEvent *event) {
46+void ScriptsTableWidget::keyPressEvent(QKeyEvent* event) {
4547 // Ignore keys so they will propagate correctly
4648 event->ignore();
4749 }