Skip to content
Snippets Groups Projects
Commit b54517ad authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Pimpin' the UI a bit.

parent 90a773ea
No related branches found
No related tags found
No related merge requests found
...@@ -219,7 +219,13 @@ void CodepasterPlugin::fetch() ...@@ -219,7 +219,13 @@ void CodepasterPlugin::fetch()
ui.listWidget->addItems(QStringList() << tr("This protocol supports no listing")); ui.listWidget->addItems(QStringList() << tr("This protocol supports no listing"));
ui.listWidget->setSelectionMode(QAbstractItemView::ExtendedSelection); ui.listWidget->setSelectionMode(QAbstractItemView::ExtendedSelection);
#ifndef Q_WS_MACX
ui.listWidget->setFrameStyle(QFrame::NoFrame); ui.listWidget->setFrameStyle(QFrame::NoFrame);
#endif // Q_WS_MACX
QFont listFont = ui.listWidget->font();
listFont.setFamily("Courier");
listFont.setStyleHint(QFont::TypeWriter);
ui.listWidget->setFont(listFont);
// ### TODO2: when we change the protocol, we need to relist // ### TODO2: when we change the protocol, we need to relist
foreach(Protocol *protocol, m_protocols) { foreach(Protocol *protocol, m_protocols) {
if (protocol->name() == ui.protocolBox->currentText() && protocol->canList()) { if (protocol->name() == ui.protocolBox->currentText() && protocol->canList()) {
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>451</width> <width>550</width>
<height>308</height> <height>350</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
...@@ -55,7 +55,11 @@ ...@@ -55,7 +55,11 @@
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QListWidget" name="listWidget"/> <widget class="QListWidget" name="listWidget">
<property name="alternatingRowColors">
<bool>true</bool>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QDialogButtonBox" name="buttons"> <widget class="QDialogButtonBox" name="buttons">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment