1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Finally fixes issue with rendering plugins list on KDE!

- uploaded correct qt german translation (qt_de.qm)
This commit is contained in:
nowrep 2012-03-07 21:28:31 +01:00
parent 527fba76b7
commit 805187f4e1
3 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@ -74,6 +74,8 @@ void PluginListDelegate::drawDisplay(QPainter* painter, const QStyleOptionViewIt
QSize PluginListDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(index)
const int textMargin = QApplication::style()->pixelMetric(QStyle::PM_FocusFrameHMargin, 0) + 1;
QSize size;

View File

@ -50,7 +50,7 @@ PluginsList::PluginsList(QWidget* parent)
connect(ui->list, SIGNAL(itemChanged(QListWidgetItem*)), this, SLOT(itemChanged(QListWidgetItem*)));
connect(ui->allowAppPlugins, SIGNAL(clicked(bool)), this, SLOT(allowAppPluginsChanged(bool)));
ui->list->setItemDelegateForColumn(0, new PluginListDelegate(ui->list));
ui->list->setItemDelegate(new PluginListDelegate(ui->list));
//WebKit Plugins
connect(ui->add, SIGNAL(clicked()), this, SLOT(addWhitelist()));
@ -154,7 +154,7 @@ void PluginsList::refresh()
PluginSpec spec = plugin.pluginSpec;
QListWidgetItem* item = new QListWidgetItem(ui->list);
QString pluginInfo = QString("<b>%1</b> %2 (%3)<br/>%4<br/>%5").arg(spec.name, spec.version, spec.author, spec.info, spec.description);
QString pluginInfo = QString("<b>%1</b> %2 (%3)<br/>\n%4<br/>\n%5\n").arg(spec.name, spec.version, spec.author, spec.info, spec.description);
item->setText(pluginInfo);