Skip to content
This repository has been archived by the owner on Dec 17, 2017. It is now read-only.

Commit

Permalink
razor-config: wrap text
Browse files Browse the repository at this point in the history
If someone could figure out how to make the text take up the full grid
width...
  • Loading branch information
amoskvin committed Sep 19, 2012
1 parent 097e36d commit 2873168
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions razorqt-config/src/mainwindow.cpp
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 2873168

Please sign in to comment.