Commit 9d4fc6bf authored by David Jarvie's avatar David Jarvie
Browse files

Krazy

svn path=/trunk/KDE/kdepim/; revision=923790
parent 4ced65f6
/*
* birthdaydlg.h - dialog to pick birthdays from address book
* Program: kalarm
* Copyright © 2002-2005,2007,2008 by David Jarvie <djarvie@kde.org>
* Copyright © 2002-2005,2007-2009 by David Jarvie <djarvie@kde.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
......@@ -20,12 +20,11 @@
#ifndef BIRTHDAYDLG_H
#define BIRTHDAYDLG_H
#include <QLineEdit>
#include <QList>
#include "alarmevent.h"
#include <kdialog.h>
#include "alarmevent.h"
#include <klineedit.h>
#include <QList>
class QFocusEvent;
class QTreeView;
......@@ -73,12 +72,12 @@ class BirthdayDlg : public KDialog
};
class BLineEdit : public QLineEdit
class BLineEdit : public KLineEdit
{
Q_OBJECT
public:
explicit BLineEdit(QWidget* parent = 0) : QLineEdit(parent) { }
explicit BLineEdit(const QString& text, QWidget* parent = 0) : QLineEdit(text, parent) { }
explicit BLineEdit(QWidget* parent = 0) : KLineEdit(parent) { }
explicit BLineEdit(const QString& text, QWidget* parent = 0) : KLineEdit(text, parent) { }
signals:
void focusLost();
protected:
......
......@@ -785,7 +785,7 @@ void EditAlarmDlg::slotResize()
if (height() > s.height())
{
// Resize to slightly greater than the minimum height.
// This is for some unkown reason necessary, since
// This is for some unknown reason necessary, since
// sometimes resizing to the minimum height fails.
resize(s.width(), s.height() + 2);
}
......
......@@ -445,7 +445,7 @@ QString KAMail::appendBodyAttachments(QString& message, const KAEvent& event)
// Check if the attachment is a text file
QString mimeType = fi.mimetype();
bool text = mimeType.startsWith("text/");
bool text = mimeType.startsWith(QLatin1String("text/"));
if (!text)
{
for (int i = 0; !text && textMimeTypes[i]; ++i)
......
......@@ -18,11 +18,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "kalarm.h"
#include "colourbutton.moc"
#include <QMouseEvent>
#include <QKeyEvent>
#include "colourbutton.h"
ColourButton::ColourButton(QWidget* parent)
: KColorButton(parent),
......
......@@ -102,7 +102,7 @@ class StackedScrollGroup;
class StackedScrollWidget : public StackedWidgetT<QScrollArea>
{
public:
StackedScrollWidget(StackedScrollGroup* group, QWidget* parent = 0);
explicit StackedScrollWidget(StackedScrollGroup* group, QWidget* parent = 0);
QWidget* widget() const { return viewport()->findChild<QWidget*>(); }
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment