<commit_before>/*
 *  timezonecombo.cpp  -  time zone selection combo box
 *  Program:  kalarm
 *  Copyright © 2006 by <NAME> <<EMAIL>>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#ifndef TIMEZONECOMBO_H
#define TIMEZONECOMBO_H

#include <combobox.h>

class KTimeZone;

/**
 *  @short A combo box for selecting a time zone, with a read-only option.
 *
 *  The widget may be set as read-only. This has the same effect as disabling it, except
 *  that its appearance is unchanged.
 *
 *  @author <NAME> <<EMAIL>>
 */
class TimeZoneCombo : public ComboBox
{
		Q_OBJECT
	public:
		/** Constructor.
		 *  @param parent The parent object of this widget.
		 */
		explicit TimeZoneCombo(QWidget* parent = 0);
		/** Returns the currently selected time zone, or null if none. */
		const KTimeZone* timeZone() const;
		/** Selects the specified time zone. */
		void setTimeZone(const KTimeZone* tz);
};

#endif // TIMEZONECOMBO_H<commit_msg>Implement reference counting for KTimeZone data to prevent deletion invalidating pointers.  KTimeZone pointers are now replaced by KTimeZone objects.<commit_after>/*
 *  timezonecombo.cpp  -  time zone selection combo box
 *  Program:  kalarm
 *  Copyright © 2006 by <NAME> <<EMAIL>>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#ifndef TIMEZONECOMBO_H
#define TIMEZONECOMBO_H

#include <combobox.h>

class KTimeZone;

/**
 *  @short A combo box for selecting a time zone, with a read-only option.
 *
 *  The widget may be set as read-only. This has the same effect as disabling it, except
 *  that its appearance is unchanged.
 *
 *  @author <NAME> <<EMAIL>>
 */
class TimeZoneCombo : public ComboBox
{
		Q_OBJECT
	public:
		/** Constructor.
		 *  @param parent The parent object of this widget.
		 */
		explicit TimeZoneCombo(QWidget* parent = 0);
		/** Returns the currently selected time zone, or null if none. */
		KTimeZone timeZone() const;
		/** Selects the specified time zone. */
		void setTimeZone(const KTimeZone& tz);
};

#endif // TIMEZONECOMBO_H
{'fraction_non_alphanumeric': 0.07856507560035576, 'fraction_numerical': 0.010080047435517344, 'mean_word_length': 3.5656292286874156, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '893211', 'n_tokens_mistral': 1017, 'n_tokens_neox': 960, 'n_words': 450}