Files
miniCashAll/libMiniCash/mctreeview.cpp

38 lines
954 B
C++
Raw Normal View History

2025-08-05 22:37:51 +02:00
/***************************************************************************
libMiniCash
Copyright © 2013-2022 christoph holzheuer
c.holzheuer@sourceworx.org
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 3 of the License, or
(at your option) any later version.
***************************************************************************/
#include <QHeaderView>
#include <mctreeview.h>
/**
* @brief Konstruktor, setzt die Default-Styles.
* @param parent
*/
MCTreeView::MCTreeView( QWidget* parent )
: QTreeView( parent )
{
header()->setDefaultAlignment ( Qt::AlignHCenter );
header()->setMinimumSectionSize( 150 );
header()->setDefaultSectionSize( 185 );
setStyleSheet("QHeaderView::section { background-color:#eeeeee }");
}
MCTreeView::~MCTreeView()
{
}