Permalink
Browse files

razor-config: wrap text

If someone could figure out how to make the text take up the full grid
width...
  • Loading branch information...
1 parent 097e36d commit 287316895e4ce1b3ba116924909f5ff1291c419f @amoskvin amoskvin committed Sep 19, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 razorqt-config/src/mainwindow.cpp
View
6 razorqt-config/src/mainwindow.cpp
@@ -140,7 +140,7 @@ class ConfigPaneModel: public QAbstractListModel
QVariant data(const QModelIndex &index, int role) const
{
- if (role == Qt::DisplayRole)
+ if (role == Qt::DisplayRole || role == Qt::ToolTipRole)
return m_list[index.row()].xdg().name();
if (role == QCategorizedSortFilterProxyModel::CategoryDisplayRole)
return m_list[index.row()].category();
@@ -170,7 +170,9 @@ RazorConfig::MainWindow::MainWindow() : QMainWindow()
view->setViewMode(QListView::IconMode);
view->setIconSize(QSize(32, 32));
- view->setGridSize(QSize(140, 74));
+ view->setGridSize(QSize(100, 100));
+ view->setWordWrap(true);
+ view->setUniformItemSizes(true);
view->setCategoryDrawer(new QCategoryDrawerV3(view));
proxyModel = new QCategorizedSortFilterProxyModel();

0 comments on commit 2873168

Please sign in to comment.