1
//=============================================================================
3
// File : KviTalMainWindow.coo
4
// Creation date : Sun Aug 12 2001 04:40:24 by Szymon Stefanek
6
// This file is part of the KVIrc irc client distribution
7
// Copyright (C) 2001-2010 Szymon Stefanek (pragma at kvirc dot net)
9
// This program is FREE software. You can redistribute it and/or
10
// modify it under the terms of the GNU General Public License
11
// as published by the Free Software Foundation; either version 2
12
// of the License, or (at your opinion) any later version.
14
// This program is distributed in the HOPE that it will be USEFUL,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
// See the GNU General Public License for more details.
19
// You should have received a copy of the GNU General Public License
20
// along with this program. If not, write to the Free Software Foundation,
21
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
//=============================================================================
26
#include "KviTalMainWindow.h"
28
#ifdef COMPILE_KDE_SUPPORT
30
KviTalMainWindow::KviTalMainWindow(QWidget * pParent, const char * pcName)
31
: KMainWindow(pParent)
33
//setWindowTitle(pcName);
34
setObjectName(pcName);
38
KviTalMainWindow::KviTalMainWindow(QWidget * pParent, const char * pcName)
39
: QMainWindow(pParent)
41
setObjectName(pcName);
46
KviTalMainWindow::~KviTalMainWindow()
50
bool KviTalMainWindow::usesBigPixmaps()
52
return (iconSize().width() > 30);
55
void KviTalMainWindow::setUsesBigPixmaps(bool bUse)
58
setIconSize(QSize(32,32));
60
setIconSize(QSize(22,22));
63
#ifndef COMPILE_USE_STANDALONE_MOC_SOURCES
64
#include "KviTalMainWindow.moc"
65
#endif //COMPILE_USE_STANDALONE_MOC_SOURCES