first re-commit.
This commit is contained in:
37
libMiniCash/mctreeview.cpp
Normal file
37
libMiniCash/mctreeview.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
/***************************************************************************
|
||||
|
||||
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()
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user