Skip to content

Commit

Permalink
Dropped (stopped working long ago)
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Apr 19, 2024
1 parent 7162c0a commit 73adfc6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 41 deletions.
15 changes: 0 additions & 15 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ void MainWindow::updateActions()

bool showingTreemap = _ui->treemapView->isVisible();

_ui->actionTreemapAsSidePanel->setEnabled( showingTreemap );
_ui->actionTreemapZoomIn->setEnabled ( showingTreemap && _ui->treemapView->canZoomIn() );
_ui->actionTreemapZoomOut->setEnabled ( showingTreemap && _ui->treemapView->canZoomOut() );
_ui->actionResetTreemapZoom->setEnabled( showingTreemap && _ui->treemapView->canZoomOut() );
Expand All @@ -339,7 +338,6 @@ void MainWindow::readSettings()

_statusBarTimeout = settings.value( "StatusBarTimeoutMillisec", 3000 ).toInt();
bool showTreemap = settings.value( "ShowTreemap" , true ).toBool();
bool treemapOnSide = settings.value( "TreemapOnSide" , false ).toBool();

_verboseSelection = settings.value( "VerboseSelection" , false ).toBool();
_urlInWindowTitle = settings.value( "UrlInWindowTitle" , false ).toBool();
Expand All @@ -354,9 +352,6 @@ void MainWindow::readSettings()
settings.endGroup();

_ui->actionShowTreemap->setChecked( showTreemap );
_ui->actionTreemapAsSidePanel->setChecked( treemapOnSide );
treemapAsSidePanel();

_ui->actionVerboseSelection->setChecked( _verboseSelection );

foreach ( QAction * action, _layoutActionGroup->actions() )
Expand Down Expand Up @@ -395,7 +390,6 @@ void MainWindow::writeSettings()
settings.beginGroup( "MainWindow" );

settings.setValue( "ShowTreemap" , _ui->actionShowTreemap->isChecked() );
settings.setValue( "TreemapOnSide" , _ui->actionTreemapAsSidePanel->isChecked() );
settings.setValue( "VerboseSelection", _verboseSelection );
settings.setValue( "Layout" , _layoutName );

Expand Down Expand Up @@ -428,15 +422,6 @@ void MainWindow::showTreemapView()
}


void MainWindow::treemapAsSidePanel()
{
if ( _ui->actionTreemapAsSidePanel->isChecked() )
_ui->mainWinSplitter->setOrientation( Qt::Horizontal );
else
_ui->mainWinSplitter->setOrientation( Qt::Vertical );
}


void MainWindow::busyDisplay()
{
_ui->treemapView->disable();
Expand Down
6 changes: 0 additions & 6 deletions src/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,6 @@ protected slots:
**/
void showTreemapView();

/**
* Switch between showing the treemap view beside the file directory
* or below it, depending on the corresponding action.
**/
void treemapAsSidePanel();

/**
* Notification that a cleanup action was started.
**/
Expand Down
3 changes: 0 additions & 3 deletions src/MainWindowMenus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ void MainWindow::connectViewTreemapMenu()
connect( _ui->actionShowTreemap, SIGNAL( toggled( bool ) ),
this, SLOT ( showTreemapView() ) );

connect( _ui->actionTreemapAsSidePanel, SIGNAL( toggled( bool ) ),
this, SLOT ( treemapAsSidePanel() ) );

CONNECT_ACTION( _ui->actionTreemapZoomIn, _ui->treemapView, zoomIn() );
CONNECT_ACTION( _ui->actionTreemapZoomOut, _ui->treemapView, zoomOut() );
CONNECT_ACTION( _ui->actionResetTreemapZoom, _ui->treemapView, resetZoom() );
Expand Down
20 changes: 3 additions & 17 deletions src/main-window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>88</width>
<height>282</height>
<width>63</width>
<height>296</height>
</rect>
</property>
</widget>
Expand All @@ -173,7 +173,7 @@
<x>0</x>
<y>0</y>
<width>1157</width>
<height>27</height>
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
Expand Down Expand Up @@ -1037,20 +1037,6 @@
<string>/~https://github.com/shundhammer/qdirstat/blob/master/doc/Troubleshooting.md#cant-move-a-directory-to-trash</string>
</property>
</action>
<action name="actionTreemapAsSidePanel">
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="text">
<string>&amp;Treemap as side panel</string>
</property>
<property name="toolTip">
<string>Show the Treeemap beside the directory tree, otherwise it will be shown beneath.</string>
</property>
</action>
<action name="actionFileAgeStats">
<property name="text">
<string>File &amp;Age Statistics</string>
Expand Down

0 comments on commit 73adfc6

Please sign in to comment.