~ubuntu-branches/ubuntu/saucy/kate/saucy

« back to all changes in this revision

Viewing changes to kwrite/kwritemain.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell, Rohan Garg, Jonathan Riddell
  • Date: 2013-06-21 00:48:29 UTC
  • mfrom: (1.1.28)
  • Revision ID: package-import@ubuntu.com-20130621004829-y2ui02eg0j47h94y
Tags: 4:4.10.80-0ubuntu1
[ Rohan Garg ]
* New upstream release
  - Update and sort install files
  - Drop kubuntu_pate_find_python.diff, kubuntu_kate_initial_preference.patch,
    kubuntu_find_python.diff from debian/patches , not required

[ Jonathan Riddell ]
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
  statusBar()->addWidget( m_modifiedLabel, 0 );
208
208
  m_modifiedLabel->setAlignment( Qt::AlignCenter );
209
209
 
 
210
  m_selectModeLabel = new QLabel( i18nc("@info:status Statusbar label for line selection mode", " LINE "), statusBar() );
 
211
  statusBar()->addWidget( m_selectModeLabel, 0 );
 
212
  m_selectModeLabel->setAlignment( Qt::AlignCenter );
 
213
 
210
214
  m_insertModeLabel = new QLabel( i18n(" INS "), statusBar() );
211
215
  statusBar()->addWidget( m_insertModeLabel, 0 );
212
216
  m_insertModeLabel->setAlignment( Qt::AlignCenter );
213
217
 
214
 
  m_selectModeLabel = new QLabel( i18nc("@info:status Statusbar label for line selection mode", " LINE "), statusBar() );
215
 
  statusBar()->addWidget( m_selectModeLabel, 0 );
216
 
  m_selectModeLabel->setAlignment( Qt::AlignCenter );
217
 
 
218
218
  m_modeLabel = new QLabel( QString(), statusBar() );
219
219
  statusBar()->addWidget( m_modeLabel, 0 );
220
 
  m_modeLabel->setAlignment( Qt::AlignCenter );
 
220
  m_modeLabel->setAlignment( Qt::AlignVCenter | Qt::AlignLeft );
221
221
 
222
222
  m_fileNameLabel=new KSqueezedTextLabel( statusBar() );
223
223
  statusBar()->addPermanentWidget( m_fileNameLabel, 1 );
224
224
  m_fileNameLabel->setTextFormat(Qt::PlainText);
225
225
  m_fileNameLabel->setMinimumSize( 0, 0 );
226
226
  m_fileNameLabel->setSizePolicy(QSizePolicy( QSizePolicy::Ignored, QSizePolicy::Fixed ));
227
 
  m_fileNameLabel->setAlignment( /*Qt::AlignRight*/Qt::AlignLeft );
228
 
 
229
 
//   m_modDiscPm = KIcon("drive-harddisk").pixmap(16);
230
 
//   m_modmodPm = KIcon("modmod").pixmap(16); // is it still required? icon is broken.
 
227
  m_fileNameLabel->setAlignment( Qt::AlignVCenter | Qt::AlignRight );
231
228
}
232
229
 
233
230
// load on url
607
604
 
608
605
void KWrite::documentNameChanged ()
609
606
{
610
 
  m_fileNameLabel->setText( KStringHandler::lsqueeze(m_view->document()->documentName (), 64) );
 
607
  m_fileNameLabel->setText( QString (" %1 ").arg (KStringHandler::lsqueeze(m_view->document()->documentName (), 64)));
611
608
 
612
609
  QString readOnlyCaption;
613
610
  if  (!m_view->document()->isReadWrite())