[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/pim/mailody
From: Frode M. Døving <frode () lnix ! net>
Date: 2008-03-22 11:20:56
Message-ID: 1206184856.083959.4251.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 788727 by fdoving:
Set default startup size and a smaller minimumsize.
Some minor changes to setupidentities.
M +2 -0 TODO
M +7 -10 src/mainwindow.cpp
M +3 -6 src/setupidentities.cpp
--- trunk/playground/pim/mailody/TODO #788726:788727
@@ -6,6 +6,8 @@
Future Unknown:
Composer: add custom headers [allee]
General: scripting support
+ Smaller startup-page that will fit in the default startup size. QSize( 900, 600 _)
+ won't hurt to have some room left for small screens. [ruphy?]
Future dalayed:
HeaderView: make keys configurable for nex/previous [fdoving]
--- trunk/playground/pim/mailody/src/mainwindow.cpp #788726:788727
@@ -126,7 +126,7 @@
mailboxDock->setWidget( m_collectionView );
mailboxDock->setFeatures( QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetClosable );
- addDockWidget( Qt::RightDockWidgetArea, mailboxDock );
+ addDockWidget( Qt::LeftDockWidgetArea, mailboxDock );
actionCollection()->addAction( "toggle_mailboxdock", mailboxDock->toggleViewAction() );
@@ -172,11 +172,8 @@
QWidget *widg = new QWidget( m_first );
QGridLayout *gbox = new QGridLayout( widg );
-
m_headerWidget = new Mailody::HeaderWidget( this );
- KConfigGroup configMain = KGlobal::config()->group( "MainWindowSizes" );
-
connect( m_headerWidget->view(), SIGNAL( scrollDown() ),
SLOT( slotTabScrollDown() ) );
connect( m_headerWidget->view(), SIGNAL( scrollUp() ),
@@ -197,7 +194,6 @@
SLOT( slotMiddleClickInHeaders( Akonadi::Item ) ) );
gbox->addWidget( m_headerWidget, 1, 0 );
-
m_right = new KHBox( m_first );
// ---------------- Tab Widget -------------------//
@@ -223,11 +219,12 @@
// ------------------ Load settings ----------------------//
- configMain = KGlobal::config()->group( "MainWindowSizes" );
+ KConfigGroup configMain = KGlobal::config()->group( "MainWindowSizes" );
+//X configMain = KGlobal::config()->group( "MainWindowSizes" );
QList<int> defaultsize2 = configMain.readEntry( "hsplitter", QList<int>() );
if ( defaultsize2.isEmpty() ) {
- defaultsize2.append( 280 );
- defaultsize2.append( 691 );
+ defaultsize2.append( 300 );
+ defaultsize2.append( 400 );
}
m_first->setSizes( defaultsize2 );
@@ -493,8 +490,8 @@
m_first->show();
Akonadi::Control::start();
setCentralWidget( m_first );
- setupGUI( Keys | StatusBar | ToolBar | Create | Save );
- setMinimumSize( QSize( 900,750 ) );
+ setupGUI( QSize( 900, 600 ), Keys | StatusBar | ToolBar | Create | Save );
+ setMinimumSize( QSize( 200, 100 ) );
setAutoSaveSettings( "MainWindow", true );
// -----------------prep Tooltip and checkmail timer ------------//
--- trunk/playground/pim/mailody/src/setupidentities.cpp #788726:788727
@@ -76,8 +76,8 @@
mainGrid->setColumnStretch( 3, 2 );
mainGrid->setColumnStretch( 4, 2 );
mainGrid->setColumnStretch( 5, 2 );
- mainGrid->setColumnMinimumWidth( 3, 100 );
- mainGrid->setColumnMinimumWidth( 4, 100 );
+ mainGrid->setColumnMinimumWidth( 3, 150 );
+ mainGrid->setColumnMinimumWidth( 4, 50 );
mainGrid->setColumnMinimumWidth( 5, 100 );
// -------------- page 1 ---------------------- //
@@ -115,7 +115,6 @@
//X m1->addWidget( htmlp, 6, 0 );
//X htmlp->setAlignment( Qt::AlignRight | Qt::AlignVCenter );
m_htmlPart = new QGroupBox( i18n( "Include Auto HTML Part:" ), page1 );
- m_htmlPart->setAlignment( Qt::AlignLeft );
m_htmlPart->setWhatsThis( i18n( "Mailody is able to convert your plain "
"message to a html message and include that "
"in the outgoing message. This means the "
@@ -148,7 +147,6 @@
m_sigBox = new QGroupBox( page2 );
m_sigBox->setCheckable( true );
m_sigBox->setTitle( i18n( "Use Signature" ) );
- m_sigBox->setAlignment( Qt::AlignLeft );
QVBoxLayout *f2 = new QVBoxLayout( m_sigBox );
f2->setAlignment( Qt::AlignTop );
@@ -156,7 +154,6 @@
m_signature->setWhatsThis( i18n( "This is the mail signature" ) );
m_sigPos = new QGroupBox( i18n( "Position" ), m_sigBox );
- m_sigPos->setAlignment( Qt::AlignLeft );
m_sigPos->setWhatsThis( i18n( "Select the placement of the signature in "
"the composer. <b>Top</b> means above the text "
"in the message you reply to or forward. "
@@ -302,7 +299,7 @@
// Delete the current identity object.
if ( !m_currentIdentity.isEmpty() ) {
KPIMIdentities::IdentityManager *im = Global::identityManager();
- KPIMIdentities::Identity& ident =
+ KPIMIdentities::Identity &ident =
im->modifyIdentityForName( m_currentIdentity );
ident.setIdentityName( m_identityName->text() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic