File indexing completed on 2024-12-22 04:17:30
0001 /*************************************************************************** 0002 * * 0003 * copyright : (C) 2007 The University of Toronto * 0004 * netterfield@astro.utoronto.ca * 0005 * * 0006 * This program is free software; you can redistribute it and/or modify * 0007 * it under the terms of the GNU General Public License as published by * 0008 * the Free Software Foundation; either version 2 of the License, or * 0009 * (at your option) any later version. * 0010 * * 0011 ***************************************************************************/ 0012 0013 #include "dialogtab.h" 0014 0015 #include "dialog.h" 0016 #include "dialogpage.h" 0017 0018 namespace Kst { 0019 0020 DialogTab::DialogTab(QWidget *parent) 0021 : QWidget(parent) { 0022 } 0023 0024 0025 DialogTab::~DialogTab() { 0026 } 0027 0028 0029 Dialog *DialogTab::dialog() const { 0030 if (dialogPage()) 0031 return dialogPage()->dialog(); 0032 else 0033 return 0; 0034 } 0035 0036 0037 DialogPage *DialogTab::dialogPage() const { 0038 return qobject_cast<DialogPage*>(parentWidget()); 0039 } 0040 0041 } 0042 0043 // vim: ts=2 sw=2 et