Commit 24c90366 authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee
Browse files

[ #13801 ] Fix about 200 Krazy2 notification/warning/comments

parent 3a099cd3
......@@ -55,7 +55,7 @@ class HistoryTreeItem : public QWidget
Q_OBJECT
public:
//Constructor
HistoryTreeItem(QWidget* parent =0, QString phone = "",bool isBookmark=false);
explicit HistoryTreeItem(QWidget* parent =0, QString phone = "",bool isBookmark=false);
~HistoryTreeItem();
//Getters
......
......@@ -51,4 +51,4 @@ void IMManager::closeRequest(int index)
if (!count())
setVisible(false);
}
}
\ No newline at end of file
}
......@@ -42,4 +42,4 @@ private slots:
void closeRequest(int index);
};
#endif // IM_MANAGER
\ No newline at end of file
#endif // IM_MANAGER
......@@ -93,4 +93,4 @@ IMTab::IMTab(InstantMessagingModel* model,QWidget* parent) : QListView(parent)
void IMTab::scrollBottom()
{
scrollTo(model()->index(model()->rowCount()-1,0));
}
\ No newline at end of file
}
......@@ -31,7 +31,7 @@ class ImDelegates : public QStyledItemDelegate
{
Q_OBJECT
public:
ImDelegates(IMTab* parent = nullptr);
explicit ImDelegates(IMTab* parent = nullptr);
protected:
virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
......@@ -43,9 +43,9 @@ class IMTab : public QListView
{
Q_OBJECT
public:
IMTab(InstantMessagingModel* model,QWidget* parent = nullptr);
explicit IMTab(InstantMessagingModel* model,QWidget* parent = nullptr);
private slots:
void scrollBottom();
};
#endif // IM_MANAGER
\ No newline at end of file
#endif // IM_MANAGER
......@@ -62,4 +62,4 @@ void SFLPhoneTray::addAction(KAction *action)
void SFLPhoneTray::addSeparator()
{
m_pTrayIconMenu->addSeparator();
}
\ No newline at end of file
}
......@@ -38,7 +38,7 @@ Q_OBJECT
public:
//Constructor
SFLPhoneTray(QIcon icon, QWidget *parent = 0);
explicit SFLPhoneTray(QIcon icon, QWidget *parent = 0);
~SFLPhoneTray();
//Mutators
......
......@@ -43,7 +43,7 @@ void TranslucentButtons::paintEvent(QPaintEvent* event)
QFont font = customPainter.font();
font.setBold(true);
customPainter.setFont(font);
customPainter.drawText (rect(), Qt::AlignVCenter|Qt::AlignHCenter, text().replace("&","") );
customPainter.drawText (rect(), Qt::AlignVCenter|Qt::AlignHCenter, text().remove('&') );
}
///Override the visibility toggler
......@@ -126,4 +126,4 @@ void TranslucentButtons::setHoverState(bool hover)
void TranslucentButtons::setPixmap(QImage* img)
{
m_pImg = img;
}
\ No newline at end of file
}
......@@ -46,4 +46,4 @@ signals:
///Emitted when data is dropped on the button
void dataDropped(QMimeData*);
};
#endif
\ No newline at end of file
#endif
......@@ -28,7 +28,7 @@
///Constructor
VideoDock::VideoDock(QWidget* parent) : QDockWidget(parent)
{
setWindowTitle(i18n("Video"));
setWindowTitle(i18nc("Video conversation","Video"));
QWidget* wdg = new QWidget(this);
m_pVideoWidet = new VideoWidget(this);
auto l = new QGridLayout(wdg);
......@@ -43,4 +43,4 @@ VideoDock::VideoDock(QWidget* parent) : QDockWidget(parent)
void VideoDock::setRenderer(VideoRenderer* r)
{
m_pVideoWidet->setRenderer(r);
}
\ No newline at end of file
}
......@@ -42,4 +42,4 @@ private slots:
};
#endif
\ No newline at end of file
#endif
......@@ -80,4 +80,4 @@ void VideoWidget::stop()
delete m_Image;
m_Image = nullptr;
}
}
\ No newline at end of file
}
......@@ -29,7 +29,7 @@ class VideoRenderer;
class VideoWidget : public QWidget {
Q_OBJECT
public:
VideoWidget(QWidget* parent =0, VideoRenderer* renderer = VideoModel::getInstance()->getPreviewRenderer());
explicit VideoWidget(QWidget* parent =0, VideoRenderer* renderer = VideoModel::getInstance()->getPreviewRenderer());
private:
QImage* m_Image;
VideoRenderer* m_pRenderer;
......@@ -44,4 +44,4 @@ public slots:
};
#endif
\ No newline at end of file
#endif
Supports Markdown
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