FancyTabWidget: Remove use of QTabBar::tabText

Fixes #1476
Fixes #1389
This commit is contained in:
Jonas Kvinge
2024-07-29 17:15:33 +02:00
parent e82ecb48b8
commit dc36f87a6e
2 changed files with 69 additions and 95 deletions

View File

@@ -2,7 +2,7 @@
* Strawberry Music Player
* This file was part of Clementine.
* Copyright 2018, Vikram Ambrose <ambroseworks@gmail.com>
* Copyright 2018, Jonas Kvinge <jonas@jkvinge.net>
* Copyright 2018-2024, Jonas Kvinge <jonas@jkvinge.net>
*
* Strawberry is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -83,9 +83,7 @@ class FancyTabWidget : public QTabWidget {
public slots:
void setCurrentIndex(int idx);
void SetMode(FancyTabWidget::Mode mode);
// Mapper mapped signal needs this convenience function
void SetMode(int mode) { SetMode(Mode(mode)); }
void SetMode(const FancyTabWidget::Mode mode);
private slots:
void tabBarUpdateGeometry();