X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtopia%2Fbufferviewwidget.cpp;h=4ee2c9894bb560bbdef4a81aa62056bb5b6b9812;hb=43e72e1cdba9451c58d322bf638e3bf761be71ac;hp=9eeba7cec0faee8a0f9459928036e5e35851beb0;hpb=8699dd758516d0ded076811e8ea656adc95e69d0;p=quassel.git diff --git a/src/qtopia/bufferviewwidget.cpp b/src/qtopia/bufferviewwidget.cpp index 9eeba7ce..4ee2c989 100644 --- a/src/qtopia/bufferviewwidget.cpp +++ b/src/qtopia/bufferviewwidget.cpp @@ -20,12 +20,13 @@ #include "bufferviewwidget.h" #include "client.h" +#include "buffermodel.h" BufferViewWidget::BufferViewWidget(QWidget *parent) : QDialog(parent) { ui.setupUi(this); setModal(true); - setStyleSheet("background-color: rgba(220, 220, 255, 40%); color: rgb(0, 0, 0); font-size: 5pt;"); + //setStyleSheet("background-color: rgb(220, 220, 255, 70%); color: rgb(0, 0, 0); font-size: 5pt;"); //ui.tabWidget->tabBar()->setStyleSheet("font-size: 5pt;"); // get rid of the default tab page designer forces upon us :( @@ -33,14 +34,13 @@ BufferViewWidget::BufferViewWidget(QWidget *parent) : QDialog(parent) { ui.tabWidget->removeTab(0); delete w; - addPage(tr("All"), BufferViewFilter::AllNets, QList()); - addPage(tr("Chans"), BufferViewFilter::AllNets|BufferViewFilter::NoQueries|BufferViewFilter::NoServers, QList()); - addPage(tr("Queries"), BufferViewFilter::AllNets|BufferViewFilter::NoChannels|BufferViewFilter::NoServers, QList()); - addPage(tr("Nets"), BufferViewFilter::AllNets|BufferViewFilter::NoChannels|BufferViewFilter::NoQueries, QList()); + addPage(tr("All"), BufferViewFilter::AllNets, QList()); + addPage(tr("Chans"), BufferViewFilter::AllNets|BufferViewFilter::NoQueries|BufferViewFilter::NoServers, QList()); + addPage(tr("Queries"), BufferViewFilter::AllNets|BufferViewFilter::NoChannels|BufferViewFilter::NoServers, QList()); + addPage(tr("Nets"), BufferViewFilter::AllNets|BufferViewFilter::NoChannels|BufferViewFilter::NoQueries, QList()); // this sometimes deadlocks, so we have to hide the dialog from the outside: - //connect(Client::bufferModel(), SIGNAL(bufferSelected(Buffer *)), this, SLOT(accept())); - + //connect(Client::bufferModel()->standardSelectionModel(), SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)), this, SLOT(accept())); } BufferViewWidget::~BufferViewWidget() { @@ -48,8 +48,9 @@ BufferViewWidget::~BufferViewWidget() { } -void BufferViewWidget::addPage(const QString &title, const BufferViewFilter::Modes &mode, const QList &nets) { +void BufferViewWidget::addPage(const QString &title, const BufferViewFilter::Modes &mode, const QList &nets) { BufferView *view = new BufferView(ui.tabWidget); + view->setStyleSheet("background-color: rgb(220, 220, 255, 70%); color: rgb(0, 0, 0); font-size: 5pt;"); view->setFilteredModel(Client::bufferModel(), mode, nets); Client::bufferModel()->synchronizeView(view); ui.tabWidget->addTab(view, title);