Permalink
Browse files

made sidebar smaller.

  • Loading branch information...
1 parent 0e6f6e9 commit 8c99a0f52fc4cddac051204698765e654eda68b9 Your Name committed Nov 2, 2010
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -65,6 +65,7 @@ def paint(self, painter, option, index):
iconpos = QPoint(
(option.rect.width() - option.decorationSize.width()) / 2,
self.ITEM_MARGIN_TOP)
+ iconpos += QPoint(8, 12)
iconpos += option.rect.topLeft()
iconmode = disabled and QIcon.Disabled or QIcon.Normal
painter.drawPixmap(iconpos, icon.pixmap(option.decorationSize, iconmode))
@@ -221,6 +222,7 @@ def __init__(self):
self.d.list.viewport().setAutoFillBackground(False)
########
#self.d.list.setFont(
+ self.d.list.setFont(QFont('sans serif', 8))
self.d.splitter = QSplitter(self)
mainLay.addWidget(self.d.splitter)
@@ -398,7 +400,7 @@ def __init__(self):
chanceIcon = QIcon('./data/gfx/icons/roll.png')
sidebar.addItem(QTextEdit(), chanceIcon, 'Chance')
hhIcon = QIcon('./data/gfx/icons/replay.png')
- sidebar.addItem(QTextEdit(), hhIcon, 'Hand History')
+ sidebar.addItem(QTextEdit(), hhIcon, 'Hand')
notesIcon = QIcon('./data/gfx/icons/document-edit.png')
sidebar.addItem(QTextEdit(), notesIcon, 'Notes')
infoIcon = QIcon('./data/gfx/icons/information.png')

0 comments on commit 8c99a0f

Please sign in to comment.