File indexing completed on 2022-11-23 10:29:24

0001 /*
0002     Requires the Qt widget libraries, available at no cost at
0003     http://www.troll.no
0004 
0005     Copyright (C) 1996 Bernd Johannes Wuebben
0006                        wuebben@math.cornell.edu
0007 
0008     This program is free software; you can redistribute it and/or modify
0009     it under the terms of the GNU General Public License as published by
0010     the Free Software Foundation; either version 2 of the License, or
0011     (at your option) any later version.
0012 
0013     This program is distributed in the hope that it will be useful,
0014     but WITHOUT ANY WARRANTY; without even the implied warranty of
0015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016     GNU General Public License for more details.
0017 
0018     You should have received a copy of the GNU General Public License
0019     along with this program; if not, write to the Free Software
0020     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
0021 
0022 */
0023 
0024 #include "kfontdialog.h"
0025 #include <kconfig.h>
0026 
0027 #include <QApplication>
0028 
0029 int main(int argc, char **argv)
0030 {
0031     QApplication::setApplicationName("KFontDialogTest");
0032 
0033     QApplication app(argc, argv);
0034 
0035     app.setFont(QFont("Helvetica", 12));
0036 
0037     //  QFont font = QFont("Times",18,QFont::Bold);
0038 
0039     QFont font;
0040     int nRet = KFontDialog::getFont(font);
0041     KFontChooser::FontDiffFlags diffFlags;
0042     nRet = KFontDialog::getFontDiff(font, diffFlags);
0043 
0044     return nRet;
0045 }