mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
some include + coding guideline cleanups
svn path=/trunk/KDE/kdebase/apps/; revision=653049
This commit is contained in:
parent
2b951edfdf
commit
c5948d6443
|
@ -20,22 +20,21 @@
|
|||
|
||||
#include "pixmapviewer.h"
|
||||
|
||||
#include <kglobalsettings.h>
|
||||
#include <kiconloader.h>
|
||||
#include <QtGui/QPainter>
|
||||
//Added by qt3to4:
|
||||
#include <QPixmap>
|
||||
#include <QPaintEvent>
|
||||
#include <QtGui/QPixmap>
|
||||
#include <QtGui/QPaintEvent>
|
||||
|
||||
PixmapViewer::PixmapViewer(QWidget* parent) :
|
||||
QWidget(parent)
|
||||
QWidget(parent)
|
||||
{
|
||||
setMinimumWidth(K3Icon::SizeEnormous);
|
||||
setMinimumWidth(K3Icon::SizeEnormous);
|
||||
}
|
||||
|
||||
PixmapViewer::~PixmapViewer()
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
void PixmapViewer::setPixmap(const QPixmap& pixmap)
|
||||
{
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
#include <QtGui/QWidget>
|
||||
#include <QtGui/QPixmap>
|
||||
//Added by qt3to4:
|
||||
#include <QPaintEvent>
|
||||
|
||||
class QPaintEvent;
|
||||
|
||||
/**
|
||||
* @brief Widget which shows a pixmap centered inside the boundaries.
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
|
||||
#include "statusbarspaceinfo.h"
|
||||
|
||||
#include <QPainter>
|
||||
#include <QPaintEvent>
|
||||
#include <QTimer>
|
||||
#include <QtCore/QTimer>
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtGui/QPaintEvent>
|
||||
|
||||
#include <kglobalsettings.h>
|
||||
#include <kdiskfreesp.h>
|
||||
|
@ -30,10 +30,10 @@
|
|||
#include <kio/job.h>
|
||||
|
||||
StatusBarSpaceInfo::StatusBarSpaceInfo(QWidget* parent) :
|
||||
QWidget(parent),
|
||||
m_gettingSize(false),
|
||||
m_kBSize(0),
|
||||
m_kBAvailable(0)
|
||||
QWidget(parent),
|
||||
m_gettingSize(false),
|
||||
m_kBSize(0),
|
||||
m_kBAvailable(0)
|
||||
{
|
||||
setMinimumWidth(200);
|
||||
|
||||
|
@ -45,7 +45,8 @@ StatusBarSpaceInfo::StatusBarSpaceInfo(QWidget* parent) :
|
|||
}
|
||||
|
||||
StatusBarSpaceInfo::~StatusBarSpaceInfo()
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
void StatusBarSpaceInfo::setUrl(const KUrl& url)
|
||||
{
|
||||
|
@ -109,10 +110,13 @@ void StatusBarSpaceInfo::paintEvent(QPaintEvent* /* event */)
|
|||
|
||||
|
||||
void StatusBarSpaceInfo::slotFoundMountPoint(const unsigned long& kBSize,
|
||||
const unsigned long& /* kBUsed */,
|
||||
const unsigned long& kBAvailable,
|
||||
const QString& /* mountPoint */)
|
||||
const unsigned long& kBUsed,
|
||||
const unsigned long& kBAvailable,
|
||||
const QString& mountPoint)
|
||||
{
|
||||
Q_UNUSED(kBUsed);
|
||||
Q_UNUSED(mountPoint);
|
||||
|
||||
m_gettingSize = false;
|
||||
m_kBSize = kBSize;
|
||||
m_kBAvailable = kBAvailable;
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
#define STATUSBARSPACEINFO_H
|
||||
|
||||
#include <kurl.h>
|
||||
#include <QtGui/QColor>
|
||||
|
||||
#include <QPaintEvent>
|
||||
#include <QWidget>
|
||||
#include <QtGui/QColor>
|
||||
#include <QtGui/QPaintEvent>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
class KDiskFreeSp;
|
||||
class QTimer;
|
||||
|
|
Loading…
Reference in a new issue