forked from qt-creator/qt-creator
AutoTest: Remove unused code
Change-Id: Ib2388e7566eaaac05a358c605418d9cb58825c39 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -38,7 +38,6 @@ private:
|
|||||||
public:
|
public:
|
||||||
LayoutPositions(QStyleOptionViewItem &options, const TestResultFilterModel *filterModel)
|
LayoutPositions(QStyleOptionViewItem &options, const TestResultFilterModel *filterModel)
|
||||||
: m_top(options.rect.top()),
|
: m_top(options.rect.top()),
|
||||||
m_bottom(options.rect.bottom()),
|
|
||||||
m_left(options.rect.left()),
|
m_left(options.rect.left()),
|
||||||
m_right(options.rect.right())
|
m_right(options.rect.right())
|
||||||
{
|
{
|
||||||
@@ -57,20 +56,15 @@ private:
|
|||||||
int top() const { return m_top + ITEM_MARGIN; }
|
int top() const { return m_top + ITEM_MARGIN; }
|
||||||
int left() const { return m_left + ITEM_MARGIN; }
|
int left() const { return m_left + ITEM_MARGIN; }
|
||||||
int right() const { return m_right - ITEM_MARGIN; }
|
int right() const { return m_right - ITEM_MARGIN; }
|
||||||
int bottom() const { return m_bottom; }
|
|
||||||
int minimumHeight() const { return ICON_SIZE + 2 * ITEM_MARGIN; }
|
int minimumHeight() const { return ICON_SIZE + 2 * ITEM_MARGIN; }
|
||||||
|
|
||||||
int iconSize() const { return ICON_SIZE; }
|
int iconSize() const { return ICON_SIZE; }
|
||||||
int fontHeight() const { return m_fontHeight; }
|
|
||||||
int typeAreaLeft() const { return left() + ICON_SIZE + ITEM_SPACING; }
|
int typeAreaLeft() const { return left() + ICON_SIZE + ITEM_SPACING; }
|
||||||
int typeAreaWidth() const { return m_typeAreaWidth; }
|
|
||||||
int textAreaLeft() const { return typeAreaLeft() + m_typeAreaWidth + ITEM_SPACING; }
|
int textAreaLeft() const { return typeAreaLeft() + m_typeAreaWidth + ITEM_SPACING; }
|
||||||
int textAreaWidth() const { return fileAreaLeft() - ITEM_SPACING - textAreaLeft(); }
|
int textAreaWidth() const { return fileAreaLeft() - ITEM_SPACING - textAreaLeft(); }
|
||||||
int fileAreaLeft() const { return lineAreaLeft() - ITEM_SPACING - m_realFileLength; }
|
int fileAreaLeft() const { return lineAreaLeft() - ITEM_SPACING - m_realFileLength; }
|
||||||
int lineAreaLeft() const { return right() - m_maxLineLength; }
|
int lineAreaLeft() const { return right() - m_maxLineLength; }
|
||||||
|
|
||||||
QRect typeArea() const { return QRect(typeAreaLeft(), top(),
|
|
||||||
typeAreaWidth(), m_fontHeight); }
|
|
||||||
QRect textArea() const { return QRect(textAreaLeft(), top(),
|
QRect textArea() const { return QRect(textAreaLeft(), top(),
|
||||||
textAreaWidth(), m_fontHeight); }
|
textAreaWidth(), m_fontHeight); }
|
||||||
QRect fileArea() const { return QRect(fileAreaLeft(), top(),
|
QRect fileArea() const { return QRect(fileAreaLeft(), top(),
|
||||||
@@ -84,7 +78,6 @@ private:
|
|||||||
int m_maxLineLength;
|
int m_maxLineLength;
|
||||||
int m_realFileLength;
|
int m_realFileLength;
|
||||||
int m_top;
|
int m_top;
|
||||||
int m_bottom;
|
|
||||||
int m_left;
|
int m_left;
|
||||||
int m_right;
|
int m_right;
|
||||||
int m_fontHeight;
|
int m_fontHeight;
|
||||||
|
|||||||
Reference in New Issue
Block a user