Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::open($save_path, $session_name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 199
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 214
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::read($id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 228
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::write($id, $dataStr) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 256
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::destroy($id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 362
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 383
Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 126
Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 127
Warning: session_cache_limiter(): Session cache limiter cannot be changed after headers have already been sent in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 133
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Warning: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 140
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of Wikimedia\Rdbms\IResultWrapper::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php on line 70
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of Wikimedia\Rdbms\IResultWrapper::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php on line 80
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of Wikimedia\Rdbms\IResultWrapper::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php on line 75
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of Wikimedia\Rdbms\ResultWrapper::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php on line 117
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of Wikimedia\Rdbms\ResultWrapper::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php on line 90
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 624
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 629
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 639
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 634
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 649
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 644
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 659
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of & MediaWiki\Session\Session::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 672
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 681
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 685
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Message implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/cppe.ru/www/includes/Message.php on line 159
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: RawMessage implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/cppe.ru/www/includes/RawMessage.php on line 34
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property RequestContext::$recursion is deprecated in /var/www/cppe.ru/www/includes/context/RequestContext.php on line 354
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property Parser::$mPreprocessorClass is deprecated in /var/www/cppe.ru/www/includes/parser/Parser.php on line 280
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/cppe.ru/www/includes/parser/Preprocessor_DOM.php on line 803
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php:34) in /var/www/cppe.ru/www/includes/Feed.php on line 232
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php:34) in /var/www/cppe.ru/www/includes/Feed.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php:34) in /var/www/cppe.ru/www/includes/WebResponse.php on line 46
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php:34) in /var/www/cppe.ru/www/includes/WebResponse.php on line 46
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php:34) in /var/www/cppe.ru/www/includes/WebResponse.php on line 46
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php:34) in /var/www/cppe.ru/www/includes/WebResponse.php on line 46 Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
http://cppe.ru/index.php?action=history&feed=atom&title=C%2B%2B%2FQt%2FQAbstractTableModelC++/Qt/QAbstractTableModel - История изменений2026-11-08T04:24:45ZИстория изменений этой страницы в викиMediaWiki 1.30.0 Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/cppe.ru/www/includes/content/TextContent.php on line 56
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/cppe.ru/www/includes/content/TextContent.php on line 56
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property PoolCounterWorkViaCallback::$poolCounter is deprecated in /var/www/cppe.ru/www/includes/poolcounter/PoolCounterWork.php on line 39
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/cppe.ru/www/includes/parser/Preprocessor_DOM.php on line 803
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/cppe.ru/www/includes/parser/Preprocessor_DOM.php on line 803
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property BlockLevelPass::$lineStart is deprecated in /var/www/cppe.ru/www/includes/parser/BlockLevelPass.php on line 60
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48 Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
http://cppe.ru/index.php?title=C%2B%2B/Qt/QAbstractTableModel&diff=1218&oldid=prev в 14:21, 25 мая 20102010-05-25T14:21:06Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr style="vertical-align: top;" lang="ru">
<td colspan="1" style="background-color: white; color:black; text-align: center;">← Предыдущая</td>
<td colspan="1" style="background-color: white; color:black; text-align: center;">Версия 14:21, 25 мая 2010</td>
</tr><tr><td colspan="2" style="text-align: center;" lang="ru"><div class="mw-diff-empty">(нет различий)</div>
</td></tr></table> Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/cppe.ru/www/includes/content/TextContent.php on line 56
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48 Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
http://cppe.ru/index.php?title=C%2B%2B/Qt/QAbstractTableModel&diff=1219&oldid=prevAdmin: 1 версия: Импорт контента...2010-05-25T10:25:12Z<p>1 версия: Импорт контента...</p>
<p><b>Новая страница</b></p><div>==A simple example that shows how selections can be used directly on a model==<br />
<br />
<br />
<br />
<source lang="cpp"> <br />
/****************************************************************************<br />
**<br />
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).<br />
** All rights reserved.<br />
** Contact: Nokia Corporation (qt-info@nokia.com)<br />
**<br />
** This file is part of the documentation of the Qt Toolkit.<br />
**<br />
** $QT_BEGIN_LICENSE:LGPL$<br />
** Commercial Usage<br />
** Licensees holding valid Qt Commercial licenses may use this file in<br />
** accordance with the Qt Commercial License Agreement provided with the<br />
** Software or, alternatively, in accordance with the terms contained in<br />
** a written agreement between you and Nokia.<br />
**<br />
** GNU Lesser General Public License Usage<br />
** Alternatively, this file may be used under the terms of the GNU Lesser<br />
** General Public License version 2.1 as published by the Free Software<br />
** Foundation and appearing in the file LICENSE.LGPL included in the<br />
** packaging of this file. Please review the following information to<br />
** ensure the GNU Lesser General Public License version 2.1 requirements<br />
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.<br />
**<br />
** In addition, as a special exception, Nokia gives you certain additional<br />
** rights. These rights are described in the Nokia Qt LGPL Exception<br />
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.<br />
**<br />
** GNU General Public License Usage<br />
** Alternatively, this file may be used under the terms of the GNU<br />
** General Public License version 3.0 as published by the Free Software<br />
** Foundation and appearing in the file LICENSE.GPL included in the<br />
** packaging of this file. Please review the following information to<br />
** ensure the GNU General Public License version 3.0 requirements will be<br />
** met: http://www.gnu.org/copyleft/gpl.html.<br />
**<br />
** If you have questions regarding the use of this file, please contact<br />
** Nokia at qt-info@nokia.com.<br />
** $QT_END_LICENSE$<br />
**<br />
****************************************************************************/<br />
#ifndef MODEL_H<br />
#define MODEL_H<br />
#include <QAbstractTableModel><br />
#include <QStringList><br />
#include <QVariant><br />
class TableModel : public QAbstractTableModel<br />
{<br />
Q_OBJECT<br />
public:<br />
TableModel(int rows = 1, int columns = 1, QObject *parent = 0);<br />
int rowCount(const QModelIndex &parent = QModelIndex()) const;<br />
int columnCount(const QModelIndex &parent = QModelIndex()) const;<br />
QVariant data(const QModelIndex &index, int role) const;<br />
QVariant headerData(int section, Qt::Orientation orientation,<br />
int role = Qt::DisplayRole) const;<br />
Qt::ItemFlags flags(const QModelIndex &index) const;<br />
bool setData(const QModelIndex &index, const QVariant &value,<br />
int role = Qt::EditRole);<br />
bool insertRows(int position, int rows, const QModelIndex &parent = QModelIndex());<br />
bool insertColumns(int position, int columns, const QModelIndex &parent = QModelIndex());<br />
bool removeRows(int position, int rows, const QModelIndex &parent = QModelIndex());<br />
bool removeColumns(int position, int columns, const QModelIndex &parent = QModelIndex());<br />
private:<br />
QList<QStringList> rowList;<br />
};<br />
#endif<br />
<br />
<br />
<br />
<br />
/*<br />
model.cpp<br />
Provides a table model for use in various examples.<br />
*/<br />
#include <QtGui><br />
#include "model.h"<br />
/*!<br />
Constructs a table model with at least one row and one column.<br />
*/<br />
TableModel::TableModel(int rows, int columns, QObject *parent)<br />
: QAbstractTableModel(parent)<br />
{<br />
QStringList newList;<br />
for (int column = 0; column < qMax(1, columns); ++column) {<br />
newList.append("");<br />
}<br />
for (int row = 0; row < qMax(1, rows); ++row) {<br />
rowList.append(newList);<br />
}<br />
}<br />
<br />
/*!<br />
Returns the number of items in the row list as the number of rows<br />
in the model.<br />
*/<br />
int TableModel::rowCount(const QModelIndex &/*parent*/) const<br />
{<br />
return rowList.size();<br />
}<br />
/*!<br />
Returns the number of items in the first list item as the number of<br />
columns in the model. All rows should have the same number of columns.<br />
*/<br />
int TableModel::columnCount(const QModelIndex &/*parent*/) const<br />
{<br />
return rowList[0].size();<br />
}<br />
/*!<br />
Returns an appropriate value for the requested data.<br />
If the view requests an invalid index, an invalid variant is returned.<br />
Any valid index that corresponds to a string in the list causes that<br />
string to be returned for the display role; otherwise an invalid variant<br />
is returned.<br />
*/<br />
QVariant TableModel::data(const QModelIndex &index, int role) const<br />
{<br />
if (!index.isValid())<br />
return QVariant();<br />
if (role == Qt::DisplayRole)<br />
return rowList[index.row()][index.column()];<br />
else<br />
return QVariant();<br />
}<br />
/*!<br />
Returns the appropriate header string depending on the orientation of<br />
the header and the section. If anything other than the display role is<br />
requested, we return an invalid variant.<br />
*/<br />
QVariant TableModel::headerData(int section, Qt::Orientation orientation,<br />
int role) const<br />
{<br />
if (role != Qt::DisplayRole)<br />
return QVariant();<br />
if (orientation == Qt::Horizontal)<br />
return QString("Column %1").arg(section);<br />
else<br />
return QString("Row %1").arg(section);<br />
}<br />
/*!<br />
Returns an appropriate value for the item"s flags. Valid items are<br />
enabled, selectable, and editable.<br />
*/<br />
Qt::ItemFlags TableModel::flags(const QModelIndex &index) const<br />
{<br />
if (!index.isValid())<br />
return Qt::ItemIsEnabled;<br />
return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable;<br />
}<br />
/*!<br />
Changes an item in the model, but only if the following conditions<br />
are met:<br />
* The index supplied is valid.<br />
* The role associated with editing text is specified.<br />
The dataChanged() signal is emitted if the item is changed.<br />
*/<br />
bool TableModel::setData(const QModelIndex &index,<br />
const QVariant &value, int role)<br />
{<br />
if (!index.isValid() || role != Qt::EditRole)<br />
return false;<br />
rowList[index.row()][index.column()] = value.toString();<br />
emit dataChanged(index, index);<br />
return true;<br />
}<br />
/*!<br />
Inserts a number of rows into the model at the specified position.<br />
*/<br />
bool TableModel::insertRows(int position, int rows, const QModelIndex &parent)<br />
{<br />
int columns = columnCount();<br />
beginInsertRows(parent, position, position + rows - 1);<br />
for (int row = 0; row < rows; ++row) {<br />
QStringList items;<br />
for (int column = 0; column < columns; ++column)<br />
items.append("");<br />
rowList.insert(position, items);<br />
}<br />
endInsertRows();<br />
return true;<br />
}<br />
/*!<br />
Inserts a number of columns into the model at the specified position.<br />
Each entry in the list is extended in turn with the required number of<br />
empty strings.<br />
*/<br />
bool TableModel::insertColumns(int position, int columns,<br />
const QModelIndex &parent)<br />
{<br />
int rows = rowCount();<br />
beginInsertColumns(parent, position, position + columns - 1);<br />
for (int row = 0; row < rows; ++row) {<br />
for (int column = position; column < columns; ++column) {<br />
rowList[row].insert(position, "");<br />
}<br />
}<br />
endInsertColumns();<br />
return true;<br />
}<br />
/*!<br />
Removes a number of rows from the model at the specified position.<br />
*/<br />
bool TableModel::removeRows(int position, int rows, const QModelIndex &parent)<br />
{<br />
beginRemoveRows(parent, position, position + rows - 1);<br />
for (int row = 0; row < rows; ++row) {<br />
rowList.removeAt(position);<br />
}<br />
endRemoveRows();<br />
return true;<br />
}<br />
/*!<br />
Removes a number of columns from the model at the specified position.<br />
Each row is shortened by the number of columns specified.<br />
*/<br />
bool TableModel::removeColumns(int position, int columns,<br />
const QModelIndex &parent)<br />
{<br />
int rows = rowCount();<br />
beginRemoveColumns(parent, position, position + columns - 1);<br />
for (int row = 0; row < rows; ++row) {<br />
for (int column = 0; column < columns; ++column) {<br />
rowList[row].removeAt(position);<br />
}<br />
}<br />
endRemoveColumns();<br />
return true;<br />
}<br />
<br />
<br />
<br />
<br />
<br />
/*<br />
main.cpp<br />
A simple example that shows how selections can be used directly on a model.<br />
It shows the result of some selections made using a table view.<br />
*/<br />
#include <QApplication><br />
#include <QItemSelection><br />
#include <QItemSelectionModel><br />
#include <QTableView><br />
#include "model.h"<br />
int main(int argc, char *argv[])<br />
{<br />
QApplication app(argc, argv);<br />
<br />
TableModel *model = new TableModel(8, 4, &app);<br />
QTableView *table = new QTableView(0);<br />
table->setModel(model);<br />
QItemSelectionModel *selectionModel = table->selectionModel();<br />
<br />
QModelIndex topLeft;<br />
QModelIndex bottomRight;<br />
topLeft = model->index(0, 0, QModelIndex());<br />
bottomRight = model->index(5, 2, QModelIndex());<br />
<br />
QItemSelection selection(topLeft, bottomRight);<br />
selectionModel->select(selection, QItemSelectionModel::Select);<br />
<br />
QItemSelection toggleSelection;<br />
topLeft = model->index(2, 1, QModelIndex());<br />
bottomRight = model->index(7, 3, QModelIndex());<br />
toggleSelection.select(topLeft, bottomRight);<br />
selectionModel->select(toggleSelection, QItemSelectionModel::Toggle);<br />
<br />
QItemSelection columnSelection;<br />
topLeft = model->index(0, 1, QModelIndex());<br />
bottomRight = model->index(0, 2, QModelIndex());<br />
columnSelection.select(topLeft, bottomRight);<br />
selectionModel->select(columnSelection,<br />
QItemSelectionModel::Select | QItemSelectionModel::Columns);<br />
QItemSelection rowSelection;<br />
topLeft = model->index(0, 0, QModelIndex());<br />
bottomRight = model->index(1, 0, QModelIndex());<br />
rowSelection.select(topLeft, bottomRight);<br />
selectionModel->select(rowSelection,<br />
QItemSelectionModel::Select | QItemSelectionModel::Rows);<br />
<br />
table->setWindowTitle("Selected items in a table model");<br />
table->show();<br />
table->resize(460, 280);<br />
return app.exec();<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==A single model can be shared between multiple views==<br />
<br />
<br />
<br />
<source lang="cpp"> <br />
/****************************************************************************<br />
**<br />
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).<br />
** All rights reserved.<br />
** Contact: Nokia Corporation (qt-info@nokia.com)<br />
**<br />
** This file is part of the documentation of the Qt Toolkit.<br />
**<br />
** $QT_BEGIN_LICENSE:LGPL$<br />
** Commercial Usage<br />
** Licensees holding valid Qt Commercial licenses may use this file in<br />
** accordance with the Qt Commercial License Agreement provided with the<br />
** Software or, alternatively, in accordance with the terms contained in<br />
** a written agreement between you and Nokia.<br />
**<br />
** GNU Lesser General Public License Usage<br />
** Alternatively, this file may be used under the terms of the GNU Lesser<br />
** General Public License version 2.1 as published by the Free Software<br />
** Foundation and appearing in the file LICENSE.LGPL included in the<br />
** packaging of this file. Please review the following information to<br />
** ensure the GNU Lesser General Public License version 2.1 requirements<br />
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.<br />
**<br />
** In addition, as a special exception, Nokia gives you certain additional<br />
** rights. These rights are described in the Nokia Qt LGPL Exception<br />
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.<br />
**<br />
** GNU General Public License Usage<br />
** Alternatively, this file may be used under the terms of the GNU<br />
** General Public License version 3.0 as published by the Free Software<br />
** Foundation and appearing in the file LICENSE.GPL included in the<br />
** packaging of this file. Please review the following information to<br />
** ensure the GNU General Public License version 3.0 requirements will be<br />
** met: http://www.gnu.org/copyleft/gpl.html.<br />
**<br />
** If you have questions regarding the use of this file, please contact<br />
** Nokia at qt-info@nokia.com.<br />
** $QT_END_LICENSE$<br />
**<br />
****************************************************************************/<br />
#ifndef MODEL_H<br />
#define MODEL_H<br />
#include <QAbstractTableModel><br />
#include <QStringList><br />
#include <QVariant><br />
class TableModel : public QAbstractTableModel<br />
{<br />
Q_OBJECT<br />
public:<br />
TableModel(int rows = 1, int columns = 1, QObject *parent = 0);<br />
int rowCount(const QModelIndex &parent = QModelIndex()) const;<br />
int columnCount(const QModelIndex &parent = QModelIndex()) const;<br />
QVariant data(const QModelIndex &index, int role) const;<br />
QVariant headerData(int section, Qt::Orientation orientation,<br />
int role = Qt::DisplayRole) const;<br />
Qt::ItemFlags flags(const QModelIndex &index) const;<br />
bool setData(const QModelIndex &index, const QVariant &value,<br />
int role = Qt::EditRole);<br />
bool insertRows(int position, int rows, const QModelIndex &parent = QModelIndex());<br />
bool insertColumns(int position, int columns, const QModelIndex &parent = QModelIndex());<br />
bool removeRows(int position, int rows, const QModelIndex &parent = QModelIndex());<br />
bool removeColumns(int position, int columns, const QModelIndex &parent = QModelIndex());<br />
private:<br />
QList<QStringList> rowList;<br />
};<br />
#endif<br />
<br />
<br />
/*<br />
model.cpp<br />
Provides a table model for use in various examples.<br />
*/<br />
#include <QtGui><br />
#include "model.h"<br />
/*!<br />
Constructs a table model with at least one row and one column.<br />
*/<br />
TableModel::TableModel(int rows, int columns, QObject *parent)<br />
: QAbstractTableModel(parent)<br />
{<br />
QStringList newList;<br />
for (int column = 0; column < qMax(1, columns); ++column) {<br />
newList.append("");<br />
}<br />
for (int row = 0; row < qMax(1, rows); ++row) {<br />
rowList.append(newList);<br />
}<br />
}<br />
<br />
/*!<br />
Returns the number of items in the row list as the number of rows<br />
in the model.<br />
*/<br />
int TableModel::rowCount(const QModelIndex &/*parent*/) const<br />
{<br />
return rowList.size();<br />
}<br />
/*!<br />
Returns the number of items in the first list item as the number of<br />
columns in the model. All rows should have the same number of columns.<br />
*/<br />
int TableModel::columnCount(const QModelIndex &/*parent*/) const<br />
{<br />
return rowList[0].size();<br />
}<br />
/*!<br />
Returns an appropriate value for the requested data.<br />
If the view requests an invalid index, an invalid variant is returned.<br />
Any valid index that corresponds to a string in the list causes that<br />
string to be returned for the display role; otherwise an invalid variant<br />
is returned.<br />
*/<br />
QVariant TableModel::data(const QModelIndex &index, int role) const<br />
{<br />
if (!index.isValid())<br />
return QVariant();<br />
if (role == Qt::DisplayRole)<br />
return rowList[index.row()][index.column()];<br />
else<br />
return QVariant();<br />
}<br />
/*!<br />
Returns the appropriate header string depending on the orientation of<br />
the header and the section. If anything other than the display role is<br />
requested, we return an invalid variant.<br />
*/<br />
QVariant TableModel::headerData(int section, Qt::Orientation orientation,<br />
int role) const<br />
{<br />
if (role != Qt::DisplayRole)<br />
return QVariant();<br />
if (orientation == Qt::Horizontal)<br />
return QString("Column %1").arg(section);<br />
else<br />
return QString("Row %1").arg(section);<br />
}<br />
/*!<br />
Returns an appropriate value for the item"s flags. Valid items are<br />
enabled, selectable, and editable.<br />
*/<br />
Qt::ItemFlags TableModel::flags(const QModelIndex &index) const<br />
{<br />
if (!index.isValid())<br />
return Qt::ItemIsEnabled;<br />
return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable;<br />
}<br />
/*!<br />
Changes an item in the model, but only if the following conditions<br />
are met:<br />
* The index supplied is valid.<br />
* The role associated with editing text is specified.<br />
The dataChanged() signal is emitted if the item is changed.<br />
*/<br />
bool TableModel::setData(const QModelIndex &index,<br />
const QVariant &value, int role)<br />
{<br />
if (!index.isValid() || role != Qt::EditRole)<br />
return false;<br />
rowList[index.row()][index.column()] = value.toString();<br />
emit dataChanged(index, index);<br />
return true;<br />
}<br />
/*!<br />
Inserts a number of rows into the model at the specified position.<br />
*/<br />
bool TableModel::insertRows(int position, int rows, const QModelIndex &parent)<br />
{<br />
int columns = columnCount();<br />
beginInsertRows(parent, position, position + rows - 1);<br />
for (int row = 0; row < rows; ++row) {<br />
QStringList items;<br />
for (int column = 0; column < columns; ++column)<br />
items.append("");<br />
rowList.insert(position, items);<br />
}<br />
endInsertRows();<br />
return true;<br />
}<br />
/*!<br />
Inserts a number of columns into the model at the specified position.<br />
Each entry in the list is extended in turn with the required number of<br />
empty strings.<br />
*/<br />
bool TableModel::insertColumns(int position, int columns, const QModelIndex &parent)<br />
{<br />
int rows = rowCount();<br />
beginInsertColumns(parent, position, position + columns - 1);<br />
for (int row = 0; row < rows; ++row) {<br />
for (int column = position; column < columns; ++column) {<br />
rowList[row].insert(position, "");<br />
}<br />
}<br />
endInsertColumns();<br />
return true;<br />
}<br />
/*!<br />
Removes a number of rows from the model at the specified position.<br />
*/<br />
bool TableModel::removeRows(int position, int rows, const QModelIndex &parent)<br />
{<br />
beginRemoveRows(parent, position, position + rows - 1);<br />
for (int row = 0; row < rows; ++row) {<br />
rowList.removeAt(position);<br />
}<br />
endRemoveRows();<br />
return true;<br />
}<br />
/*!<br />
Removes a number of columns from the model at the specified position.<br />
Each row is shortened by the number of columns specified.<br />
*/<br />
bool TableModel::removeColumns(int position, int columns, const QModelIndex &parent)<br />
{<br />
int rows = rowCount();<br />
beginRemoveColumns(parent, position, position + columns - 1);<br />
for (int row = 0; row < rows; ++row) {<br />
for (int column = 0; column < columns; ++column) {<br />
rowList[row].removeAt(position);<br />
}<br />
}<br />
endRemoveColumns();<br />
return true;<br />
}<br />
<br />
<br />
/*<br />
main.cpp<br />
A simple example that shows how a single model can be shared between<br />
multiple views.<br />
*/<br />
#include <QApplication><br />
#include <QHeaderView><br />
#include <QItemSelectionModel><br />
#include <QTableView><br />
#include "model.h"<br />
int main(int argc, char *argv[])<br />
{<br />
QApplication app(argc, argv);<br />
TableModel *model = new TableModel(4, 2, &app);<br />
<br />
QTableView *firstTableView = new QTableView;<br />
QTableView *secondTableView = new QTableView;<br />
<br />
firstTableView->setModel(model);<br />
secondTableView->setModel(model);<br />
<br />
firstTableView->horizontalHeader()->setModel(model);<br />
for (int row = 0; row < 4; ++row) {<br />
for (int column = 0; column < 2; ++column) {<br />
QModelIndex index = model->index(row, column, QModelIndex());<br />
model->setData(index, QVariant(QString("(%1, %2)").arg(row).arg(column)));<br />
}<br />
}<br />
<br />
secondTableView->setSelectionModel(firstTableView->selectionModel());<br />
<br />
firstTableView->setWindowTitle("First table view");<br />
secondTableView->setWindowTitle("Second table view");<br />
firstTableView->show();<br />
secondTableView->show();<br />
return app.exec();<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==how selections can be used directly on a model==<br />
<br />
<br />
<br />
<source lang="cpp"> <br />
/****************************************************************************<br />
**<br />
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).<br />
** All rights reserved.<br />
** Contact: Nokia Corporation (qt-info@nokia.com)<br />
**<br />
** This file is part of the documentation of the Qt Toolkit.<br />
**<br />
** $QT_BEGIN_LICENSE:LGPL$<br />
** Commercial Usage<br />
** Licensees holding valid Qt Commercial licenses may use this file in<br />
** accordance with the Qt Commercial License Agreement provided with the<br />
** Software or, alternatively, in accordance with the terms contained in<br />
** a written agreement between you and Nokia.<br />
**<br />
** GNU Lesser General Public License Usage<br />
** Alternatively, this file may be used under the terms of the GNU Lesser<br />
** General Public License version 2.1 as published by the Free Software<br />
** Foundation and appearing in the file LICENSE.LGPL included in the<br />
** packaging of this file. Please review the following information to<br />
** ensure the GNU Lesser General Public License version 2.1 requirements<br />
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.<br />
**<br />
** In addition, as a special exception, Nokia gives you certain additional<br />
** rights. These rights are described in the Nokia Qt LGPL Exception<br />
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.<br />
**<br />
** GNU General Public License Usage<br />
** Alternatively, this file may be used under the terms of the GNU<br />
** General Public License version 3.0 as published by the Free Software<br />
** Foundation and appearing in the file LICENSE.GPL included in the<br />
** packaging of this file. Please review the following information to<br />
** ensure the GNU General Public License version 3.0 requirements will be<br />
** met: http://www.gnu.org/copyleft/gpl.html.<br />
**<br />
** If you have questions regarding the use of this file, please contact<br />
** Nokia at qt-info@nokia.com.<br />
** $QT_END_LICENSE$<br />
**<br />
****************************************************************************/<br />
#ifndef MODEL_H<br />
#define MODEL_H<br />
#include <QAbstractTableModel><br />
#include <QStringList><br />
#include <QVariant><br />
class TableModel : public QAbstractTableModel<br />
{<br />
Q_OBJECT<br />
public:<br />
TableModel(int rows = 1, int columns = 1, QObject *parent = 0);<br />
int rowCount(const QModelIndex &parent = QModelIndex()) const;<br />
int columnCount(const QModelIndex &parent = QModelIndex()) const;<br />
QVariant data(const QModelIndex &index, int role) const;<br />
QVariant headerData(int section, Qt::Orientation orientation,<br />
int role = Qt::DisplayRole) const;<br />
Qt::ItemFlags flags(const QModelIndex &index) const;<br />
bool setData(const QModelIndex &index, const QVariant &value,<br />
int role = Qt::EditRole);<br />
bool insertRows(int position, int rows, const QModelIndex &parent = QModelIndex());<br />
bool insertColumns(int position, int columns, const QModelIndex &parent = QModelIndex());<br />
bool removeRows(int position, int rows, const QModelIndex &parent = QModelIndex());<br />
bool removeColumns(int position, int columns, const QModelIndex &parent = QModelIndex());<br />
private:<br />
QList<QStringList> rowList;<br />
};<br />
#endif<br />
<br />
<br />
<br />
/*<br />
model.cpp<br />
Provides a table model for use in various examples.<br />
*/<br />
#include <QtGui><br />
#include "model.h"<br />
/*!<br />
Constructs a table model with at least one row and one column.<br />
*/<br />
TableModel::TableModel(int rows, int columns, QObject *parent)<br />
: QAbstractTableModel(parent)<br />
{<br />
QStringList newList;<br />
for (int column = 0; column < qMax(1, columns); ++column) {<br />
newList.append("");<br />
}<br />
for (int row = 0; row < qMax(1, rows); ++row) {<br />
rowList.append(newList);<br />
}<br />
}<br />
<br />
/*!<br />
Returns the number of items in the row list as the number of rows<br />
in the model.<br />
*/<br />
int TableModel::rowCount(const QModelIndex &/*parent*/) const<br />
{<br />
return rowList.size();<br />
}<br />
/*!<br />
Returns the number of items in the first list item as the number of<br />
columns in the model. All rows should have the same number of columns.<br />
*/<br />
int TableModel::columnCount(const QModelIndex &/*parent*/) const<br />
{<br />
return rowList[0].size();<br />
}<br />
/*!<br />
Returns an appropriate value for the requested data.<br />
If the view requests an invalid index, an invalid variant is returned.<br />
Any valid index that corresponds to a string in the list causes that<br />
string to be returned for the display role; otherwise an invalid variant<br />
is returned.<br />
*/<br />
QVariant TableModel::data(const QModelIndex &index, int role) const<br />
{<br />
if (!index.isValid())<br />
return QVariant();<br />
if (role == Qt::DisplayRole)<br />
return rowList[index.row()][index.column()];<br />
else<br />
return QVariant();<br />
}<br />
/*!<br />
Returns the appropriate header string depending on the orientation of<br />
the header and the section. If anything other than the display role is<br />
requested, we return an invalid variant.<br />
*/<br />
QVariant TableModel::headerData(int section, Qt::Orientation orientation,<br />
int role) const<br />
{<br />
if (role != Qt::DisplayRole)<br />
return QVariant();<br />
if (orientation == Qt::Horizontal)<br />
return QString("Column %1").arg(section);<br />
else<br />
return QString("Row %1").arg(section);<br />
}<br />
/*!<br />
Returns an appropriate value for the item"s flags. Valid items are<br />
enabled, selectable, and editable.<br />
*/<br />
Qt::ItemFlags TableModel::flags(const QModelIndex &index) const<br />
{<br />
if (!index.isValid())<br />
return Qt::ItemIsEnabled;<br />
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;<br />
}<br />
/*!<br />
Changes an item in the model, but only if the following conditions<br />
are met:<br />
* The index supplied is valid.<br />
* The role associated with editing text is specified.<br />
The dataChanged() signal is emitted if the item is changed.<br />
*/<br />
bool TableModel::setData(const QModelIndex &index,<br />
const QVariant &value, int role)<br />
{<br />
if (!index.isValid() || role != Qt::EditRole)<br />
return false;<br />
rowList[index.row()][index.column()] = value.toString();<br />
emit dataChanged(index, index);<br />
return true;<br />
}<br />
/*!<br />
Inserts a number of rows into the model at the specified position.<br />
*/<br />
bool TableModel::insertRows(int position, int rows, const QModelIndex &parent)<br />
{<br />
int columns = columnCount();<br />
beginInsertRows(parent, position, position + rows - 1);<br />
for (int row = 0; row < rows; ++row) {<br />
QStringList items;<br />
for (int column = 0; column < columns; ++column)<br />
items.append("");<br />
rowList.insert(position, items);<br />
}<br />
endInsertRows();<br />
return true;<br />
}<br />
/*!<br />
Inserts a number of columns into the model at the specified position.<br />
Each entry in the list is extended in turn with the required number of<br />
empty strings.<br />
*/<br />
bool TableModel::insertColumns(int position, int columns,<br />
const QModelIndex &parent)<br />
{<br />
int rows = rowCount();<br />
beginInsertColumns(parent, position, position + columns - 1);<br />
for (int row = 0; row < rows; ++row) {<br />
for (int column = position; column < columns; ++column) {<br />
rowList[row].insert(position, "");<br />
}<br />
}<br />
endInsertColumns();<br />
return true;<br />
}<br />
/*!<br />
Removes a number of rows from the model at the specified position.<br />
*/<br />
bool TableModel::removeRows(int position, int rows, const QModelIndex &parent)<br />
{<br />
beginRemoveRows(parent, position, position + rows - 1);<br />
for (int row = 0; row < rows; ++row) {<br />
rowList.removeAt(position);<br />
}<br />
endRemoveRows();<br />
return true;<br />
}<br />
/*!<br />
Removes a number of columns from the model at the specified position.<br />
Each row is shortened by the number of columns specified.<br />
*/<br />
bool TableModel::removeColumns(int position, int columns,<br />
const QModelIndex &parent)<br />
{<br />
int rows = rowCount();<br />
beginRemoveColumns(parent, position, position + columns - 1);<br />
for (int row = 0; row < rows; ++row) {<br />
for (int column = 0; column < columns; ++column) {<br />
rowList[row].removeAt(position);<br />
}<br />
}<br />
endRemoveColumns();<br />
return true;<br />
}<br />
#ifndef WINDOW_H<br />
#define WINDOW_H<br />
#include <QItemSelection><br />
#include <QMainWindow><br />
#include <QAbstractItemModel><br />
#include <QWidget><br />
#include <QTableView><br />
class MainWindow : public QMainWindow<br />
{<br />
Q_OBJECT<br />
public:<br />
MainWindow(QWidget *parent = 0);<br />
private slots:<br />
void fillSelection();<br />
void clearSelection();<br />
void selectAll();<br />
private:<br />
QAbstractItemModel *model;<br />
QItemSelectionModel *selectionModel;<br />
QTableView *table;<br />
};<br />
#endif<br />
<br />
<br />
/*<br />
window.cpp<br />
A minimal subclass of QTableView with slots to allow the selection model<br />
to be monitored.<br />
*/<br />
#include <QAbstractItemModel><br />
#include <QItemSelection><br />
#include <QItemSelectionModel><br />
#include <QMenu><br />
#include <QMenuBar><br />
#include <QStatusBar><br />
#include "model.h"<br />
#include "window.h"<br />
MainWindow::MainWindow(QWidget *parent)<br />
: QMainWindow(parent)<br />
{<br />
setWindowTitle("Selected Items in a Table Model");<br />
model = new TableModel(8, 4, this);<br />
table = new QTableView(this);<br />
table->setModel(model);<br />
QMenu *actionMenu = new QMenu(tr("&Actions"), this);<br />
QAction *fillAction = actionMenu->addAction(tr("&Fill Selection"));<br />
QAction *clearAction = actionMenu->addAction(tr("&Clear Selection"));<br />
QAction *selectAllAction = actionMenu->addAction(tr("&Select All"));<br />
menuBar()->addMenu(actionMenu);<br />
connect(fillAction, SIGNAL(triggered()), this, SLOT(fillSelection()));<br />
connect(clearAction, SIGNAL(triggered()), this, SLOT(clearSelection()));<br />
connect(selectAllAction, SIGNAL(triggered()), this, SLOT(selectAll()));<br />
selectionModel = table->selectionModel();<br />
statusBar();<br />
setCentralWidget(table);<br />
}<br />
void MainWindow::fillSelection()<br />
{<br />
QModelIndexList indexes = selectionModel->selectedIndexes();<br />
QModelIndex index;<br />
foreach(index, indexes) {<br />
QString text = QString("(%1,%2)").arg(index.row()).arg(index.column());<br />
model->setData(index, text);<br />
}<br />
}<br />
void MainWindow::clearSelection()<br />
{<br />
QModelIndexList indexes = selectionModel->selectedIndexes();<br />
QModelIndex index;<br />
foreach(index, indexes)<br />
model->setData(index, "");<br />
}<br />
void MainWindow::selectAll()<br />
{<br />
QModelIndex parent = QModelIndex();<br />
<br />
QModelIndex topLeft = model->index(0, 0, parent);<br />
QModelIndex bottomRight = model->index(model->rowCount(parent)-1,<br />
model->columnCount(parent)-1, parent);<br />
<br />
QItemSelection selection(topLeft, bottomRight);<br />
selectionModel->select(selection, QItemSelectionModel::Select);<br />
}<br />
<br />
<br />
/*<br />
main.cpp<br />
A simple example that shows how selections can be used directly on a model.<br />
It shows the result of some selections made using a table view.<br />
*/<br />
#include <QApplication><br />
#include "window.h"<br />
int main(int argc, char *argv[])<br />
{<br />
QApplication app(argc, argv);<br />
QMainWindow *window = new MainWindow;<br />
window->show();<br />
window->resize(640, 480);<br />
return app.exec();<br />
}<br />
<br />
<br />
</source></div>Admin Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48