mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 09:15:38 +03:00
- Remove warnings about deprecated QStyleOptionView by using unversioned version
- Fix warning about converting strings.
This commit is contained in:
parent
d218b33609
commit
2e65e745ee
3 changed files with 6 additions and 6 deletions
|
@ -75,7 +75,7 @@ bool MixersList::dropMimeData( int index, const QMimeData * data, Qt::DropAction
|
|||
*/
|
||||
void MixersDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||
{
|
||||
QStyleOptionViewItemV4 options = option;
|
||||
QStyleOptionViewItem options = option;
|
||||
initStyleOption(&options, index);
|
||||
|
||||
painter->save();
|
||||
|
@ -107,7 +107,7 @@ void MixersDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option
|
|||
*/
|
||||
QSize MixersDelegate::sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const
|
||||
{
|
||||
QStyleOptionViewItemV4 options = option;
|
||||
QStyleOptionViewItem options = option;
|
||||
initStyleOption(&options, index);
|
||||
|
||||
//setup html document
|
||||
|
@ -125,7 +125,7 @@ QSize MixersDelegate::sizeHint ( const QStyleOptionViewItem & option, const QMod
|
|||
return QSize(doc.idealWidth(), height);
|
||||
}
|
||||
|
||||
void MixersDelegate::SetupDocument(QTextDocument & doc, const QStyleOptionViewItemV4 & options) const
|
||||
void MixersDelegate::SetupDocument(QTextDocument & doc, const QStyleOptionViewItem & options) const
|
||||
{
|
||||
//setup html document
|
||||
doc.setHtml(options.text);
|
||||
|
|
|
@ -46,7 +46,7 @@ class MixersDelegate : public QStyledItemDelegate
|
|||
QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const;
|
||||
|
||||
private:
|
||||
void SetupDocument(QTextDocument & doc, const QStyleOptionViewItemV4 & options) const;
|
||||
void SetupDocument(QTextDocument & doc, const QStyleOptionViewItem & options) const;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -210,7 +210,7 @@
|
|||
#ifdef MOUNTED_GETMNTINFO
|
||||
|
||||
# if ! HAVE_STRUCT_STATFS_F_FSTYPENAME
|
||||
static char *
|
||||
static const char *
|
||||
fstype_to_string (short int t)
|
||||
{
|
||||
switch (t)
|
||||
|
@ -305,7 +305,7 @@ fstype_to_string (short int t)
|
|||
}
|
||||
# endif
|
||||
|
||||
static char *
|
||||
static const char *
|
||||
fsp_to_string (const struct statfs *fsp)
|
||||
{
|
||||
# if HAVE_STRUCT_STATFS_F_FSTYPENAME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue