|
1 | 1 | /*
|
2 | 2 | * Bittorrent Client using Qt and libtorrent.
|
| 3 | + * Copyright (C) 2015-2024 Vladimir Golovnev <[email protected]> |
3 | 4 | * Copyright (C) 2020, Will Da Silva <[email protected]>
|
4 |
| - * Copyright (C) 2015, 2018 Vladimir Golovnev <[email protected]> |
5 | 5 | * Copyright (C) 2006 Christophe Dumez <[email protected]>
|
6 | 6 | *
|
7 | 7 | * This program is free software; you can redistribute it and/or
|
@@ -120,6 +120,7 @@ SearchWidget::SearchWidget(IGUIApplication *app, MainWindow *mainWindow)
|
120 | 120 | #endif
|
121 | 121 | connect(m_ui->tabWidget, &QTabWidget::tabCloseRequested, this, &SearchWidget::closeTab);
|
122 | 122 | connect(m_ui->tabWidget, &QTabWidget::currentChanged, this, &SearchWidget::tabChanged);
|
| 123 | + connect(m_ui->tabWidget->tabBar(), &QTabBar::tabMoved, this, &SearchWidget::tabMoved); |
123 | 124 |
|
124 | 125 | const auto *searchManager = SearchPluginManager::instance();
|
125 | 126 | const auto onPluginChanged = [this]()
|
@@ -262,6 +263,11 @@ void SearchWidget::tabChanged(const int index)
|
262 | 263 | m_currentSearchTab = ((index < 0) ? nullptr : m_allTabs.at(m_ui->tabWidget->currentIndex()));
|
263 | 264 | }
|
264 | 265 |
|
| 266 | +void SearchWidget::tabMoved(const int from, const int to) |
| 267 | +{ |
| 268 | + m_allTabs.move(from, to); |
| 269 | +} |
| 270 | + |
265 | 271 | void SearchWidget::selectMultipleBox([[maybe_unused]] const int index)
|
266 | 272 | {
|
267 | 273 | if (selectedPlugin() == u"multi")
|
|
0 commit comments