UI Nits: Splitter handle show/hide button gone

.. taking out last remnants in the code from previous design. This will
also remove the focus block that appears on calendar handle in diary view,
but only really visible on Linux with Gtk/Gnome.
This commit is contained in:
Mark Liversedge
2013-03-11 13:21:05 +00:00
parent 7098a7faf4
commit 951bc5c3b5
2 changed files with 0 additions and 44 deletions

View File

@@ -256,16 +256,7 @@ GcSplitterHandle::GcSplitterHandle(QString title, GcSplitterItem *widget, Qt::Or
font.setWeight(QFont::Black);
titleLabel->setFont(font);
showHide = new QPushButton(this);
showHide->setStyleSheet("QPushButton {color : blue;background: transparent}");
showHide->setFixedWidth(16);
state = true;
//showHideClicked();
//titleLayout->addWidget(showHide);
//connect(showHide, SIGNAL(clicked(bool)), this, SLOT(showHideClicked()));
titleLayout->addSpacing(10);
titleLayout->addWidget(titleLabel);
titleLayout->addStretch();
@@ -339,34 +330,6 @@ GcSplitterHandle::paintBackground(QPaintEvent *)
painter.restore();
}
void
GcSplitterHandle::setExpanded(bool expanded)
{
state = expanded;
if (expanded == false) {
showHide->setIcon(widget->icon);//QIcon(*show));
titleLabel->setStyleSheet("QLabel { color: gray; }");
fullHeight = widget->height();
widget->setFixedHeight(0);
} else {
showHide->setIcon(widget->icon);//QIcon(*hide));
titleLabel->setStyleSheet("QLabel { color: black; }");
widget->setBaseSize(widget->width(), fullHeight);
widget->setMaximumSize(QWIDGETSIZE_MAX,QWIDGETSIZE_MAX);
widget->setMinimumSize(0,0);
}
showHide->setChecked(false);
repaint();
}
void
GcSplitterHandle::showHideClicked()
{
state = !state;
setExpanded(state);
}
GcSplitterControl::GcSplitterControl(QWidget *parent) : QToolBar(parent)
{
setContentsMargins(0,0,0,0);

View File

@@ -103,11 +103,6 @@ protected:
GcSubSplitter *gcSplitter;
int index;
public slots:
void showHideClicked();
void setExpanded(bool expanded);
private:
void paintBackground(QPaintEvent *);
@@ -116,11 +111,9 @@ private:
QHBoxLayout *titleLayout;
GcLabel *titleLabel;
QToolBar *titleToolbar;
QPushButton *showHide;
QString title;
int fullHeight;
bool state;
QLinearGradient active, inactive;
};