Kurt Hindenburg
2a2a56d73c
modernize use nullptr
9 years ago
Kurt Hindenburg
ec972e4554
uncrustify using kf5 config
9 years ago
Kurt Hindenburg
b4b4a502bf
More changes to QLatin1String, QLatin1Char and QStringLiteral
9 years ago
Kurt Hindenburg
eade05a4bd
Do not specify Qt modules in includes
9 years ago
Kurt Hindenburg
dfafff97d4
remove QDebug/qWarning and use QCDebug
9 years ago
Kurt Hindenburg
2b586e6ff8
use auto
9 years ago
Martin T. H. Sandsmark
6416009561
Don't crash/assert on trying to load session with invalid ID
...
Failing to find a ID should not be a fatal assert, the ViewManager
handles it properly.
BUG: 372173
(cherry picked from commit c5ccfc20e8 )
9 years ago
Martin T. H. Sandsmark
c5ccfc20e8
Don't crash/assert on trying to load session with invalid ID
...
Failing to find a ID should not be a fatal assert, the ViewManager
handles it properly.
BUG: 372173
9 years ago
Andreas Hartmetz
35fdfb2fcb
A loop can run zero times without another check.
...
While at it, constify and adjust coding style.
10 years ago
Kurt Hindenburg
6d39aa019b
add session.count() to qWarning
11 years ago
Montel Laurent
83515eafbc
Port to new connect api
12 years ago
Montel Laurent
bce7d53c72
kdelibs4support--
12 years ago
Montel Laurent
8182ac8edc
Port to QDebug
12 years ago
Kurt Hindenburg
b6429eadec
port from K_GLOBAL_STATIC to Q_GLOBAL_STATIC
...
Patch by Michal Humpula michal humpula hudrydum cz
REVIEW: 120496
12 years ago
Alex Richardson
a3ce74d4eb
Convert to Qt5 signal slot syntax
...
REVIEW: 117482
12 years ago
Kurt Hindenburg
1ea501da62
remove include moc from .cpp files - removes build warnings
13 years ago
Kurt Hindenburg
e02fea6e17
astyle fixes
...
use git diff -w --ignore-all-space to see non-space changes
14 years ago
Kurt Hindenburg
ad52474e0c
minor style changes - remove spaces
14 years ago
Kurt Hindenburg
bee9aa8f78
minor style fixes - remove empty lines start/end code blocks
14 years ago
Jekyll Wu
cc8cdd87c8
Move class SessionModelList into its own files
14 years ago
Jekyll Wu
c0cc298f48
Some small cleanup
14 years ago
Jekyll Wu
50668d65b0
Set the initial/preferred terminal size accroding to profile options
...
The old code always set the hardcoded 80x40 size.
Two profile options are added under the "General" group:
* TerminalColumns
* terminalRows
Note: Due to the way KMainWindow works, those profile options may not
work :(. Do not take this commit as something completed.
14 years ago
Kurt Hindenburg
5b083640ce
whitespace and style fixes
...
Use 'git diff -w --ignore-all-space' to see non-whitespace changes
14 years ago
Jekyll Wu
f2eed5bdb9
Cleanup #includes
14 years ago
Jekyll Wu
dc08f6dc37
Rename: ShouldApplyProperty2 ==> ShouldApplyProperty
14 years ago
Jekyll Wu
ace798d58d
Merge the code of SessioManager::updateSession() into another method
...
SessioManager::updateSession() is only used once by the other method. No
good reason to keep two methods.
14 years ago
Jekyll Wu
193777e21a
Split class SessionManager into ProfileMananger and SessionManager
...
REVIEW: 104425
14 years ago
Jekyll Wu
c5f0c6794d
Prefer the convenient methods for accesing profile options
14 years ago
Jekyll Wu
5a1851e361
Another trivial change
14 years ago
Jekyll Wu
33678e7ca4
Add more convenient methods for accessing profile option
14 years ago
Jekyll Wu
6511de621b
Prefer using the available convenient method for profile option
14 years ago
Jekyll Wu
683f2c9ec5
Merge Profile::HistoryModeEnum and HistorySizeDialog::HistoryMode into Enum::HistoryMode Enum
14 years ago
Kurt Hindenburg
e0862c603a
Style fixes - separte commands - remove 2 ; - align { elses
14 years ago
Kurt Hindenburg
519e2614d6
Style fixes - remove spaces before ; and add spaces in for loops
14 years ago
Jekyll Wu
25b8b5353c
Trivial style change: remove extra blank lines
14 years ago
Kurt Hindenburg
4dae2895bb
Separate the profile reader/writer to their own file
14 years ago
Jekyll Wu
f4fb943132
Most of time we only need <KLocalizedString> instead of <KLocale>
14 years ago
Jekyll Wu
dccfaf1b54
Remove one unneeded #include
14 years ago
Jekyll Wu
f42fd4721b
Clean up unneeded #includes
14 years ago
Jekyll Wu
9bfac3b509
Krazy2 fix for foreach(...)
...
Well, I don't think there is actually problem here for POD types.
Anyway, just change it to make krazy happy :)
14 years ago
Jekyll Wu
f0529c1c02
Prefer foreach(..) over iterating manually for readability
14 years ago
Jekyll Wu
13bdd4c611
Minor changes
14 years ago
Jekyll Wu
5044ebb263
SessionManager::loadProfile should return immediately with non-existing path
14 years ago
Kurt Hindenburg
0bd1927585
Select right profile name in saveFavorites()
...
Do not use "profile->name()" for retrieve profile name, but take it
from profile path.
When a profile name is changed (ex. test -> test2):
profile->path() (/home/xxxx/.../test.profile)
profile->name() (test2.profile)
Thanks to Francesco Cecconi (francesco.cecconi@gmail.com ) for patch
BUG: 292637
REVIEW: 103807
FIXED-IN: 4.9
14 years ago
Jekyll Wu
debfec2eb3
Add environment variable $KONSOLE_PROFILE_NAME
...
It records the name of the profile used in current tab/session.
FEATURE: 227296
FIXED-IN:4.9
14 years ago
Jekyll Wu
d33056c178
Rename: type ==> profile for more specific meaning
14 years ago
Jekyll Wu
6b6a5944f6
Prefer foreach(...) over while(...) for simplicity and readability
14 years ago
Kurt Hindenburg
8240973baf
Use relative paths in config file
...
konsolerc uses in 'Favorites Profiles' and 'Profile Shortcuts' the full
path. Changing this to relative path (if in a KDE location) allows
one user can copy then to another.
FIXED-IN: 4.9
BUG: 283102
REVIEW: 102749
14 years ago
Jekyll Wu
dcc57fce24
Split the exisint setDefaultProfile() methods into two methods
14 years ago
Jekyll Wu
81167d1084
Move the logic of ensuring all profiles are loaded into SessionManager itself.
...
The idea of delaying loading all profiles until needed is an internal
optimization, and should be hidden to the users of SessionManager.
14 years ago