~ubuntu-branches/ubuntu/trusty/quassel/trusty-updates

« back to all changes in this revision

Viewing changes to src/qtui/inputwidget.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-02-18 23:18:25 UTC
  • mfrom: (1.1.54)
  • Revision ID: package-import@ubuntu.com-20140218231825-6vvoh451otn95pkn
Tags: 0.10~beta1-0ubuntu1
* New upstream beta relase
  - Drop debian/patches/upstream_fix_fullscreen_mode.diff which had been
    cherrypicked from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (C) 2005-2013 by the Quassel Project                        *
 
2
 *   Copyright (C) 2005-2014 by the Quassel Project                        *
3
3
 *   devel@quassel-irc.org                                                 *
4
4
 *                                                                         *
5
5
 *   This program is free software; you can redistribute it and/or modify  *
123
123
    s.notify("EnableScrollBars", this, SLOT(setScrollBarsEnabled(QVariant)));
124
124
    setScrollBarsEnabled(s.value("EnableScrollBars", true));
125
125
 
 
126
    s.notify("EnableLineWrap", this, SLOT(setLineWrapEnabled(QVariant)));
 
127
    setLineWrapEnabled(s.value("EnableLineWrap", false));
 
128
 
126
129
    s.notify("EnableMultiLine", this, SLOT(setMultiLineEnabled(QVariant)));
127
130
    setMultiLineEnabled(s.value("EnableMultiLine", true));
128
131
 
210
213
}
211
214
 
212
215
 
 
216
void InputWidget::setLineWrapEnabled(const QVariant &v)
 
217
{
 
218
    ui.inputEdit->setLineWrapEnabled(v.toBool());
 
219
}
 
220
 
 
221
 
213
222
void InputWidget::setMultiLineEnabled(const QVariant &v)
214
223
{
215
224
    ui.inputEdit->setMode(v.toBool() ? MultiLineEdit::MultiLine : MultiLineEdit::SingleLine);