Skip to content

Commit

Permalink
qtquick: Remove unused imports and enable UnusedImports qmllint check
Browse files Browse the repository at this point in the history
Since the check passes, enable it, so CI catches the next unused
imports.
  • Loading branch information
iamsergio committed Jan 26, 2025
1 parent 482c070 commit 1a36831
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .qmllint.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ UnexpectedVarType=info
UnknownProperty=disable
UnqualifiedAccess=info
UnresolvedType=info
UnusedImports=info
UnusedImports=warning
UseProperFunction=info
VarUsedBeforeDeclaration=info
WithStatement=info
2 changes: 0 additions & 2 deletions src/qtquick/views/qml/Group.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
*/

import QtQuick 2.9
import QtQuick.Layouts 1.9

import com.kdab.dockwidgets 2.0

Rectangle {
Expand Down
2 changes: 0 additions & 2 deletions src/qtquick/views/qml/MDIResizeHandlerHelper.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
Contact KDAB at <[email protected]> for commercial licensing options.
*/
import QtQuick 2.9
import QtQuick.Controls 2.9
import QtQuick.Layouts 1.9

import com.kdab.dockwidgets 2.0

Expand Down
5 changes: 2 additions & 3 deletions src/qtquick/views/qml/TabBarBase.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/

import QtQuick 2.9
import QtQuick.Controls 2.9

Item {
id: root
Expand Down Expand Up @@ -50,7 +49,7 @@ Item {
Connections {
target: root.groupCpp
function onCurrentIndexChanged() {
root.currentTabIndex = groupCpp.currentIndex;
root.currentTabIndex = groupCpp.currentIndex;
}
}

Expand All @@ -65,7 +64,7 @@ Item {
onTabBarCppChanged: {
if (tabBarCpp) {
if (!root.hasCustomMouseEventRedirector)
tabBarCpp.redirectMouseEvents(tabBarDragMouseArea)
tabBarCpp.redirectMouseEvents(tabBarDragMouseArea);

// Setting just so the unit-tests can access the buttons
tabBarCpp.tabBarQmlItem = this;
Expand Down

0 comments on commit 1a36831

Please sign in to comment.