diff --git a/widgets/sizewidget.cpp b/widgets/sizewidget.cpp deleted file mode 100644 index 87205ce60..000000000 --- a/widgets/sizewidget.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Cantata - * - * Copyright (c) 2011-2018 Craig Drummond - * - * ---- - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ - -#include "sizewidget.h" -#include "toolbutton.h" -#include "sizegrip.h" -#include "support/combobox.h" - -static int swHeight=-1; - -SizeWidget::SizeWidget(QWidget *parent) - : QWidget(parent) -{ - if (-1 == swHeight) { - ComboBox c(this); - ToolButton b(this); - SizeGrip g(this); - c.ensurePolished(); - b.ensurePolished(); - g.ensurePolished(); - swHeight=qMax(c.sizeHint().height(), qMax(b.sizeHint().height(), g.sizeHint().height())); - } - setFixedHeight(swHeight); -} - -void SizeWidget::paintEvent(QPaintEvent *e) -{ - Q_UNUSED(e) -} diff --git a/widgets/sizewidget.h b/widgets/sizewidget.h deleted file mode 100644 index 694925c85..000000000 --- a/widgets/sizewidget.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Cantata - * - * Copyright (c) 2011-2018 Craig Drummond - * - * ---- - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ - -#ifndef SIZEWIDGET_H -#define SIZEWIDGET_H - -#include - -class SizeWidget : public QWidget -{ -public: - explicit SizeWidget(QWidget *parent = nullptr); - void paintEvent(QPaintEvent *e) override; -}; - -#endif