mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
Fix Clang warnings: 'xxxWidget::sizeHint' hides overloaded vf
warning: 'IdentityWidget::sizeHint' hides overloaded virtual function [- Woverloaded-virtual] QSize sizeHint(); warning: 'CircleWidget::sizeHint' hides overloaded virtual function [- Woverloaded-virtual] QSize sizeHint(); /usr/include/qt4/QtGui/qwidget.h:537: hidden overloaded virtual function 'QWidget::sizeHint' declared here: different qualifiers (const vs none) virtual QSize sizeHint() const;
This commit is contained in:
parent
6f2d7bbca0
commit
8d85cf558b
@ -96,7 +96,7 @@ void CircleWidget::updateData(const RsGroupMetaData& gxs_group_info
|
||||
}
|
||||
}
|
||||
|
||||
QSize CircleWidget::sizeHint()
|
||||
QSize CircleWidget::sizeHint() const
|
||||
{
|
||||
QSize size;
|
||||
size.setHeight(ui->graphicsView->size().height() + ui->label->size().height());
|
||||
|
@ -24,7 +24,7 @@ public:
|
||||
, const RsGxsCircleDetails& details);
|
||||
|
||||
//Start QWidget Properties
|
||||
QSize sizeHint();
|
||||
QSize sizeHint() const;
|
||||
//Start FlowLayoutItem Properties
|
||||
virtual const QPixmap getImage();
|
||||
virtual const QPixmap getDragImage();
|
||||
|
@ -148,7 +148,7 @@ void IdentityWidget::updateData(const RsGxsIdGroup &gxs_group_info, const RsPeer
|
||||
updateData(pgp_details);
|
||||
}
|
||||
|
||||
QSize IdentityWidget::sizeHint()
|
||||
QSize IdentityWidget::sizeHint() const
|
||||
{
|
||||
QSize size;
|
||||
size.setHeight(ui->graphicsView->size().height() + ui->labelName->size().height());
|
||||
|
@ -26,7 +26,7 @@ public:
|
||||
, const RsPeerDetails& pgp_details);
|
||||
|
||||
//Start QWidget Properties
|
||||
QSize sizeHint();
|
||||
QSize sizeHint() const;
|
||||
//Start FlowLayoutItem Properties
|
||||
virtual const QPixmap getImage();
|
||||
virtual const QPixmap getDragImage();
|
||||
|
Loading…
Reference in New Issue
Block a user