Warning, file /education/kalzium/src/tableinfowidget.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2007 Carsten Niehaus <cniehaus@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "tableinfowidget.h" 0008 0009 #include "kalzium_debug.h" 0010 #include <QHBoxLayout> 0011 0012 #include <KLocalizedString> 0013 0014 #include "prefs.h" 0015 #include "psetables.h" 0016 0017 TableInfoWidget::TableInfoWidget(QWidget *parent) 0018 : QWidget(parent) 0019 , m_tableType(new QLabel(QStringLiteral("test"), this)) 0020 { 0021 0022 auto la = new QHBoxLayout(this); 0023 la->addWidget(m_tableType); 0024 } 0025 0026 void TableInfoWidget::setTableType(int type) 0027 { 0028 m_tableType->setText(pseTables::instance()->getTabletype(type)->description()); 0029 }