|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 //USER |
|
19 #include "logsconfigurationparams.h" |
|
20 #include "logslogger.h" |
|
21 |
|
22 // ----------------------------------------------------------------------------- |
|
23 // |
|
24 // ----------------------------------------------------------------------------- |
|
25 // |
|
26 LogsConfigurationParams::LogsConfigurationParams( QObject* parent ) : |
|
27 QObject(parent), mListItemTextWidth(0) |
|
28 { |
|
29 |
|
30 LOGS_QDEBUG( "logs [ENG] <-> LogsConfigurationParams::LogsConfigurationParams()" ) |
|
31 } |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 LogsConfigurationParams& LogsConfigurationParams::operator=( |
|
38 const LogsConfigurationParams& params ) |
|
39 { |
|
40 |
|
41 LOGS_QDEBUG( "logs [ENG] <-> LogsConfigurationParams::operator=()" ) |
|
42 mListItemTextWidth = params.mListItemTextWidth; |
|
43 return *this; |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 LogsConfigurationParams::~LogsConfigurationParams() |
|
51 { |
|
52 LOGS_QDEBUG( "logs [ENG] <-> LogsConfigurationParams::~LogsConfigurationParams()" ) |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 void LogsConfigurationParams::setListItemTextWidth(int width) |
|
60 { |
|
61 mListItemTextWidth = width; |
|
62 } |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 int LogsConfigurationParams::listItemTextWidth() const |
|
69 { |
|
70 return mListItemTextWidth; |
|
71 } |
|
72 |
|
73 // End of file |
|
74 |