fix warnings, krazy fixes

parent fc2b3738
......@@ -43,7 +43,7 @@ class Part;
class BrowserExtension : public KParts::BrowserExtension
{
public:
BrowserExtension(Part*);
explicit BrowserExtension(Part*);
};
......
......@@ -92,7 +92,7 @@ ProgressBox::setText(int files)
}
void ProgressBox::paintEvent(QPaintEvent* event )
void ProgressBox::paintEvent(QPaintEvent*)
{
QPainter paint(this);
paint.setRenderHint(QPainter::Antialiasing);
......
......@@ -299,7 +299,7 @@ void RadialMap::Map::paint(bool antialias)
{
int width = rect.width() / 2;
//clever geometric trick to find largest angle that will give biggest arrow head
int a_max = int(acos((double)width / double((width + 5))) * (180*16 / M_PI));
uint a_max = int(acos((double)width / double((width + 5))) * (180*16 / M_PI));
for (ConstIterator<Segment> it = m_signature[x].constIterator(); it != m_signature[x].end(); ++it)
{
......@@ -313,7 +313,7 @@ void RadialMap::Map::paint(bool antialias)
//draw arrow head to indicate undisplayed files/directories
QPolygon pts(3);
QPoint pos, cpos = rect.center();
int a[3] = { (*it)->start(), (*it)->length(), 0 };
uint a[3] = { (*it)->start(), (*it)->length(), 0 };
a[2] = a[0] + (a[1] / 2); //assign to halfway between
if (a[1] > a_max)
......
......@@ -36,7 +36,7 @@ class Segment;
class Map
{
public:
Map(bool summary);
explicit Map(bool summary);
~Map();
void make(const Folder *, bool = false);
......
......@@ -48,8 +48,6 @@ RadialMap::Widget::Widget(QWidget *parent, bool isSummary)
setAcceptDrops(true);
setMinimumSize(350, 250);
const QBitmap *cursor = QCursor(Qt::PointingHandCursor).bitmap();
connect(this, SIGNAL(created(const Folder*)), SLOT(sendFakeMouseEvent()));
connect(this, SIGNAL(created(const Folder*)), SLOT(update()));
connect(&m_timer, SIGNAL(timeout()), SLOT(resizeTimeout()));
......
......@@ -40,7 +40,7 @@ class ScanManager : public QObject
friend class RemoteLister;
public:
ScanManager(QObject *parent);
explicit ScanManager(QObject *parent);
virtual ~ScanManager();
bool start(const KUrl&);
......
......@@ -33,7 +33,7 @@ class SettingsDialog : public KDialog, public Ui::Dialog
Q_OBJECT
public:
SettingsDialog(QWidget* = 0);
explicit SettingsDialog(QWidget* = 0);
protected:
virtual void closeEvent(QCloseEvent *);
......
......@@ -31,7 +31,7 @@ class SummaryWidget : public QWidget
Q_OBJECT
public:
SummaryWidget(QWidget *parent);
explicit SummaryWidget(QWidget *parent);
signals:
void activated(const KUrl&);
......
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