Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide dock titlebars #449

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1191,9 +1191,9 @@ void MainWindow::setShowThumbnails(bool show) {

if(show) {
if(!thumbnailsDock_) {
thumbnailsDock_ = new QDockWidget(this);
thumbnailsDock_ = new QDockWidget(tr("Thumbnails"), this);
thumbnailsDock_->setTitleBarWidget(new QWidget); // hide dock titlebar
thumbnailsDock_->setFeatures(QDockWidget::NoDockWidgetFeatures); // FIXME: should use DockWidgetClosable
thumbnailsDock_->setWindowTitle(tr("Thumbnails"));
thumbnailsView_ = new Fm::FolderView(Fm::FolderView::IconMode);
thumbnailsView_->setIconSize(Fm::FolderView::IconMode, QSize(settings.thumbnailSize(), settings.thumbnailSize()));
thumbnailsView_->setAutoSelectionDelay(0);
Expand Down Expand Up @@ -1263,6 +1263,7 @@ void MainWindow::setShowExifData(bool show) {
// Be sure the dock was created before rendering content to it
if (show && !exifDataDock_) {
exifDataDock_ = new QDockWidget(tr("EXIF Data"), this);
exifDataDock_->setTitleBarWidget(new QWidget); // hide dock titlebar
exifDataDock_->setFeatures(QDockWidget::NoDockWidgetFeatures);
addDockWidget(Qt::RightDockWidgetArea, exifDataDock_);
}
Expand Down