mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Tweak margins and sizehints
This commit is contained in:
@@ -118,14 +118,6 @@ SettingsDialog::SettingsDialog(QObject *parent )
|
|||||||
m_advancedWidgetUi->aclEntryClearButton->setEnabled( TomahawkSettings::instance()->aclEntries().size() > 0 );
|
m_advancedWidgetUi->aclEntryClearButton->setEnabled( TomahawkSettings::instance()->aclEntries().size() > 0 );
|
||||||
connect( m_advancedWidgetUi->aclEntryClearButton, SIGNAL( clicked( bool ) ), this, SLOT( aclEntryClearButtonClicked() ) );
|
connect( m_advancedWidgetUi->aclEntryClearButton, SIGNAL( clicked( bool ) ), this, SLOT( aclEntryClearButtonClicked() ) );
|
||||||
|
|
||||||
//#ifdef Q_WS_X11
|
|
||||||
// setContentsMargins( 4, 4, 4, 4 );
|
|
||||||
//#elif defined( Q_OS_MAC )
|
|
||||||
// setContentsMargins( 0, 0, 0, 4 );
|
|
||||||
//#else
|
|
||||||
// setContentsMargins( 0, 4, 4, 4 );
|
|
||||||
//#endif
|
|
||||||
|
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
// Avoid resize handles on sheets on osx
|
// Avoid resize handles on sheets on osx
|
||||||
m_proxySettings.setSizeGripEnabled( true );
|
m_proxySettings.setSizeGripEnabled( true );
|
||||||
@@ -199,7 +191,6 @@ SettingsDialog::SettingsDialog(QObject *parent )
|
|||||||
{
|
{
|
||||||
m_collectionWidgetUi->dirTree->checkPath( dir, Qt::Checked );
|
m_collectionWidgetUi->dirTree->checkPath( dir, Qt::Checked );
|
||||||
}
|
}
|
||||||
// m_collectionWidgetUi->advancedPage->setMinimumSize( ui->advancedPage->sizeHint() );
|
|
||||||
|
|
||||||
int buttonsWidth = qMax( m_advancedWidgetUi->proxyButton->sizeHint().width(),
|
int buttonsWidth = qMax( m_advancedWidgetUi->proxyButton->sizeHint().width(),
|
||||||
m_advancedWidgetUi->aclEntryClearButton->sizeHint().width() );
|
m_advancedWidgetUi->aclEntryClearButton->sizeHint().width() );
|
||||||
@@ -207,6 +198,8 @@ SettingsDialog::SettingsDialog(QObject *parent )
|
|||||||
m_advancedWidgetUi->aclEntryClearButton->setFixedWidth( buttonsWidth );
|
m_advancedWidgetUi->aclEntryClearButton->setFixedWidth( buttonsWidth );
|
||||||
|
|
||||||
|
|
||||||
|
m_advancedWidget->setMinimumSize( m_advancedWidget->sizeHint() );
|
||||||
|
m_accountsWidget->setMinimumSize( 500, 400 );
|
||||||
// NOW PLAYING
|
// NOW PLAYING
|
||||||
// #ifdef Q_WS_MAC
|
// #ifdef Q_WS_MAC
|
||||||
// ui->checkBoxEnableAdium->setChecked( s->nowPlayingEnabled() );
|
// ui->checkBoxEnableAdium->setChecked( s->nowPlayingEnabled() );
|
||||||
|
@@ -14,6 +14,9 @@
|
|||||||
<string>Form</string>
|
<string>Form</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<property name="margin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
|
@@ -14,6 +14,9 @@
|
|||||||
<string>Form</string>
|
<string>Form</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<property name="margin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="remoteConnectionsGroupBox">
|
<widget class="QGroupBox" name="remoteConnectionsGroupBox">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
|
@@ -14,6 +14,9 @@
|
|||||||
<string>Form</string>
|
<string>Form</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<property name="margin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
|
@@ -93,6 +93,7 @@ QToolbarTabDialog::QToolbarTabDialog() :
|
|||||||
pimpl->rightSpacer = pimpl->toolbar->addWidget(rightSpacer);
|
pimpl->rightSpacer = pimpl->toolbar->addWidget(rightSpacer);
|
||||||
|
|
||||||
pimpl->layout = new QVBoxLayout;
|
pimpl->layout = new QVBoxLayout;
|
||||||
|
pimpl->layout->setContentsMargins( 4, 4, 4, 4 );
|
||||||
pimpl->layout->addWidget(pimpl->toolbar);
|
pimpl->layout->addWidget(pimpl->toolbar);
|
||||||
pimpl->layout->addWidget(pimpl->separator);
|
pimpl->layout->addWidget(pimpl->separator);
|
||||||
pimpl->layout->addWidget(pimpl->stack);
|
pimpl->layout->addWidget(pimpl->stack);
|
||||||
|
Reference in New Issue
Block a user