if (current_style.isEmpty())
style_cb->setCurrentIndex(0);
else
- style_cb->setCurrentIndex(style_cb->findText(current_style, 0));
+ style_cb->setCurrentIndex(style_cb->findText(current_style, nullptr));
connect(style_cb, SIGNAL(currentIndexChanged(int)),
this, SLOT(on_general_style_changed(int)));
Qt::ItemFlags DecoderCollectionModel::flags(const QModelIndex& index) const
{
if (!index.isValid())
- return 0;
+ return nullptr;
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
}
#include "pv/subwindows/decoder_selector/subwindow.hpp"
using std::reverse;
-using std::shared_ptr;
namespace pv {
namespace subwindows {
Q_OBJECT
public:
- DecoderCollectionModel(QObject* parent = 0);
+ DecoderCollectionModel(QObject* parent = nullptr);
QVariant data(const QModelIndex& index, int role) const override;
Qt::ItemFlags flags(const QModelIndex& index) const override;
QCustomSortFilterProxyModel* sort_filter_model_;
};
-} // decoder_selector
+} // namespace decoder_selector
} // namespace subwindows
} // namespace pv
Q_OBJECT
public:
- QWidthAdjustingScrollArea(QWidget* parent = 0);
+ QWidthAdjustingScrollArea(QWidget* parent = nullptr);
void setWidget(QWidget* w);
bool eventFilter(QObject* obj, QEvent* ev);
};