mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-22 21:52:46 +01:00
Code style changes to match the existing code
This changes the style of the private variable and the call convention of the inherited functions.
This commit is contained in:
parent
b062febea0
commit
f5785db163
@ -215,7 +215,7 @@ PlaylistView::PlaylistView(QWidget *parent)
|
||||
dynamic_controls_->hide();
|
||||
|
||||
// To proper scale all pixmaps
|
||||
device_pixel_ratio = this->devicePixelRatioF();
|
||||
device_pixel_ratio_ = devicePixelRatioF();
|
||||
|
||||
// For fading
|
||||
connect(fade_animation_, SIGNAL(valueChanged(qreal)), SLOT(FadePreviousBackgroundImage(qreal)));
|
||||
@ -560,8 +560,8 @@ void PlaylistView::UpdateCachedCurrentRowPixmap(QStyleOptionViewItem option, con
|
||||
cached_current_row_row_ = idx.row();
|
||||
|
||||
option.rect.moveTo(0, 0);
|
||||
cached_current_row_ = QPixmap(option.rect.width() * device_pixel_ratio, option.rect.height() * device_pixel_ratio);
|
||||
cached_current_row_.setDevicePixelRatio(device_pixel_ratio);
|
||||
cached_current_row_ = QPixmap(option.rect.width() * device_pixel_ratio_, option.rect.height() * device_pixel_ratio_);
|
||||
cached_current_row_.setDevicePixelRatio(device_pixel_ratio_);
|
||||
cached_current_row_.fill(Qt::transparent);
|
||||
|
||||
QPainter p(&cached_current_row_);
|
||||
@ -1027,8 +1027,8 @@ void PlaylistView::paintEvent(QPaintEvent *event) {
|
||||
|
||||
if (drop_indicator_row_ != -1) {
|
||||
if (cached_tree_.isNull()) {
|
||||
cached_tree_ = QPixmap(size().width() * device_pixel_ratio, size().height() * device_pixel_ratio);
|
||||
cached_tree_.setDevicePixelRatio(device_pixel_ratio);
|
||||
cached_tree_ = QPixmap(size().width() * device_pixel_ratio_, size().height() * device_pixel_ratio_);
|
||||
cached_tree_.setDevicePixelRatio(device_pixel_ratio_);
|
||||
cached_tree_.fill(Qt::transparent);
|
||||
|
||||
QPainter cache_painter(&cached_tree_);
|
||||
|
@ -220,7 +220,7 @@ class PlaylistView : public QTreeView {
|
||||
Playlist *playlist_;
|
||||
PlaylistHeader *header_;
|
||||
|
||||
qreal device_pixel_ratio;
|
||||
qreal device_pixel_ratio_;
|
||||
AppearanceSettingsPage::BackgroundImageType background_image_type_;
|
||||
QString background_image_filename_;
|
||||
AppearanceSettingsPage::BackgroundImagePosition background_image_position_;
|
||||
|
Loading…
Reference in New Issue
Block a user