summaryrefslogtreecommitdiffstats
path: root/gui/groupview
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-07-06 11:15:15 +0200
committerPetr Mrázek <peterix@gmail.com>2014-07-06 11:15:15 +0200
commitcc499488dbab9167870e6088f9a1793f95894c79 (patch)
treed6efb25086f4c2c6cb3c0a3dc8ad5a5a80985286 /gui/groupview
parenta218d7b7f6a9e30671be72b756104302637eb33d (diff)
downloadMultiMC-cc499488dbab9167870e6088f9a1793f95894c79.tar
MultiMC-cc499488dbab9167870e6088f9a1793f95894c79.tar.gz
MultiMC-cc499488dbab9167870e6088f9a1793f95894c79.tar.lz
MultiMC-cc499488dbab9167870e6088f9a1793f95894c79.tar.xz
MultiMC-cc499488dbab9167870e6088f9a1793f95894c79.zip
Fix liteloader, some cleanups.
Diffstat (limited to 'gui/groupview')
-rw-r--r--gui/groupview/GroupView.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/gui/groupview/GroupView.cpp b/gui/groupview/GroupView.cpp
index 7094b34c..69a06fd3 100644
--- a/gui/groupview/GroupView.cpp
+++ b/gui/groupview/GroupView.cpp
@@ -3,7 +3,6 @@
#include <QPainter>
#include <QApplication>
#include <QtMath>
-#include <QDebug>
#include <QMouseEvent>
#include <QListView>
#include <QPersistentModelIndex>
@@ -12,6 +11,7 @@
#include <QScrollBar>
#include "Group.h"
+#include "logger/QsLog.h"
template <typename T> bool listsIntersect(const QList<T> &l1, const QList<T> t2)
{
@@ -917,10 +917,10 @@ QModelIndex GroupView::moveCursor(QAbstractItemView::CursorAction cursorAction,
auto current = currentIndex();
if(!current.isValid())
{
- qDebug() << "model row: invalid";
+ QLOG_DEBUG() << "model row: invalid";
return current;
}
- qDebug() << "model row: " << current.row();
+ QLOG_DEBUG() << "model row: " << current.row();
auto cat = category(current);
int i = m_groups.indexOf(cat);
if(i >= 0)
@@ -934,11 +934,11 @@ QModelIndex GroupView::moveCursor(QAbstractItemView::CursorAction cursorAction,
break;
beginning_row += group->numRows();
}
- qDebug() << "category: " << real_group->text;
+ QLOG_DEBUG() << "category: " << real_group->text;
QPair<int, int> pos = categoryInternalPosition(current);
int row = beginning_row + pos.second;
- qDebug() << "row: " << row;
- qDebug() << "column: " << pos.first;
+ QLOG_DEBUG() << "row: " << row;
+ QLOG_DEBUG() << "column: " << pos.first;
}
return current;
}